diff --git a/src/app/modules/customer-management/services/customer.service.spec.ts b/src/app/modules/customer-management/services/customer.service.spec.ts index 176b4d7e2..2dffc8565 100644 --- a/src/app/modules/customer-management/services/customer.service.spec.ts +++ b/src/app/modules/customer-management/services/customer.service.spec.ts @@ -47,8 +47,8 @@ describe('CustomerService', () => { ]; const key = 'id'; const url = `${service.baseUrl}/1`; - service.deleteCustomer(customer[0].id).subscribe((customerResponse) => { - expect(customerResponse.filter((customers) => customers[key] !== customers[0].id)).toEqual([customer[1]]); + service.deleteCustomer(customer[0][key]).subscribe((customerResponse) => { + expect(customerResponse.filter((customers) => customers[key] !== customers[0][key])).toEqual([customer[1]]); }); const getCustomerRequest = httpMock.expectOne(url);