Skip to content

Commit 2ab5466

Browse files
committed
fix: TT-282 I renamed the variable isMemberOf because It was not a name appropriate in that unit testing
1 parent 6000db5 commit 2ab5466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/modules/time-clock/components/entry-fields/entry-fields.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ describe('EntryFieldsComponent', () => {
323323
});
324324

325325
it('dispatches an action when onSubmit is called', () => {
326-
const isMemberOf = spyOn(component, 'entryFormIsValidate').and.returnValue(true);
326+
const isEntryFormValid = spyOn(component, 'entryFormIsValidate').and.returnValue(true);
327327
spyOn(store, 'dispatch');
328328

329329
component.onSubmit();
330330

331-
expect(isMemberOf).toHaveBeenCalled();
331+
expect(isEntryFormValid).toHaveBeenCalled();
332332
expect(store.dispatch).toHaveBeenCalled();
333333
});
334334

0 commit comments

Comments
 (0)