Skip to content

Commit fa4d96d

Browse files
committed
refactor(DateUtils.test.js): replace "var" by "const"
1 parent 1e7dc06 commit fa4d96d

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
@@ -3,7 +3,7 @@ import './DateUtils.js'
33
describe('DateUtils.formatDateToDdMmYyyy()', () => {
44

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

0 commit comments

Comments
 (0)