Skip to content

Commit ae6ab74

Browse files
committed
feat: TT-26 test in create customer
1 parent 9c6b86a commit ae6ab74

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,13 @@ describe('CreateCustomerComponent', () => {
140140
expect(component.changeValueAreTabsActives.emit).toHaveBeenCalledWith(component.areTabsActive);
141141
});
142142

143+
fit('if it detects changes in customer information, it should issue a true', () => {
144+
component.haveChanges = true;
145+
spyOn(component.isHaveChanges, 'emit');
146+
147+
component.onSearchChanges('changes text');
148+
149+
expect(component.haveChanges).toBe(true);
150+
expect(component.isHaveChanges.emit).toHaveBeenCalledWith(component.haveChanges);
151+
});
143152
});

0 commit comments

Comments
 (0)