Skip to content

Commit 4245779

Browse files
refactor(moment-date-adapter): change toEqual -> ToBe in strict mode boolean tests
1 parent 8d9cf06 commit 4245779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/material-moment-adapter/adapter/moment-date-adapter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ describe('MomentDateAdapter with MAT_MOMENT_DATE_ADAPTER_OPTIONS override', () =
492492
});
493493

494494
it('should detect invalid strings according to given format', () => {
495-
expect(adapter.parse('2017-01-01', 'MM/DD/YYYY')!.isValid()).toEqual(false);
496-
expect(adapter.parse('1/2/2017', 'MM/DD/YYYY')!.isValid()).toEqual(false);
497-
expect(adapter.parse('Jan 5, 2017', 'MMMM D, YYYY')!.isValid()).toEqual(false);
495+
expect(adapter.parse('2017-01-01', 'MM/DD/YYYY')!.isValid()).toBe(false);
496+
expect(adapter.parse('1/2/2017', 'MM/DD/YYYY')!.isValid()).toBe(false);
497+
expect(adapter.parse('Jan 5, 2017', 'MMMM D, YYYY')!.isValid()).toBe(false);
498498
});
499499

500500
});

0 commit comments

Comments
 (0)