Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: TT-26-Warn-of-unsaved-changes-btn-cancel test
  • Loading branch information
scastillo-jp committed Mar 24, 2021
commit 6cc45dc043c997f2698c6bbad92e2f8c94a0a0d3
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ describe('CreateCustomerComponent', () => {
it('should call resetCustomerForm', () => {
spyOn(component.customerForm, 'reset');
spyOn(component.closeCustomerComponent, 'emit');

spyOn(component.hasChangedEvent, 'emit');
component.resetCustomerForm();

expect(component.customerForm.reset).toHaveBeenCalled();
expect(component.closeCustomerComponent.emit).toHaveBeenCalledWith(false);
expect(component.hasChangedEvent.emit).toHaveBeenCalledWith(false);
});

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