Skip to content

Commit c95a635

Browse files
author
Igor Drobiazko
committed
Test proving YYYY-MM-DDTHH:mm:ss.SSSZ is parsed properly
1 parent 6665a5f commit c95a635

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/helpers/formatDate.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ describe('Outlook Format Date', function test() {
6666
expect(actualOutput).toEqual(expectedOutput);
6767
});
6868

69+
it('should parse YYYY-MM-DDTHH:mm:ss.SSSZ', () => {
70+
const actualOutput = action.formatDate('2017-01-14T10:00:00.000Z', 'Europe/Kiev', format);
71+
expect(actualOutput).toEqual('2017-01-14T12:00:00');
72+
});
73+
6974
});
7075

7176
//Check if the VALUE of the returned string is as expected.

0 commit comments

Comments
 (0)