Skip to content

Commit 6cc45dc

Browse files
committed
fix: TT-26-Warn-of-unsaved-changes-btn-cancel test
1 parent ea30453 commit 6cc45dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ describe('CreateCustomerComponent', () => {
6363
it('should call resetCustomerForm', () => {
6464
spyOn(component.customerForm, 'reset');
6565
spyOn(component.closeCustomerComponent, 'emit');
66-
66+
spyOn(component.hasChangedEvent, 'emit');
6767
component.resetCustomerForm();
6868

6969
expect(component.customerForm.reset).toHaveBeenCalled();
7070
expect(component.closeCustomerComponent.emit).toHaveBeenCalledWith(false);
71+
expect(component.hasChangedEvent.emit).toHaveBeenCalledWith(false);
7172
});
7273

7374
it('onSubmit, dispatch CreateCustomer and LoadCustomers actions', () => {

0 commit comments

Comments
 (0)