Skip to content

Commit 087e9ba

Browse files
committed
refactor(DateUtils.test.js): use matcher toBe() instead of toEqual()
Quote from https://jestjs.io/docs/using-matchers: > toBe uses Object.is to test exact equality. If you want to check the value of an object, use toEqual instead
1 parent fa4d96d commit 087e9ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/frontend/src/utils/DateUtils.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('DateUtils.formatDateToDdMmYyyy()', () => {
44

55
it('should return a string in a format dd.mm.yyyy', () => {
66
const date = new Date('2018-06-12T16:59:54.451Z');
7-
expect(DateUtils.formatDateToDdMmYyyy(date)).toEqual('12.06.2018');
7+
expect(DateUtils.formatDateToDdMmYyyy(date)).toBe('12.06.2018');
88
});
99

1010
});

0 commit comments

Comments
 (0)