We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 087e9ba commit ba1e775Copy full SHA for ba1e775
src/main/frontend/src/utils/DateUtils.test.js
@@ -3,8 +3,12 @@ import './DateUtils.js'
3
describe('DateUtils.formatDateToDdMmYyyy()', () => {
4
5
it('should return a string in a format dd.mm.yyyy', () => {
6
+ // given
7
const date = new Date('2018-06-12T16:59:54.451Z');
- expect(DateUtils.formatDateToDdMmYyyy(date)).toBe('12.06.2018');
8
+ // when
9
+ const result = DateUtils.formatDateToDdMmYyyy(date);
10
+ // then
11
+ expect(result).toBe('12.06.2018');
12
});
13
14
0 commit comments