Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-26 21:26:34 +03:00
parent 6090836233
commit 0ba22da4b0
4 changed files with 27 additions and 0 deletions

View File

@ -4,3 +4,6 @@ const {JSONToDate} = require('./_30s.js');
test('JSONToDate is a Function', () => {
expect(JSONToDate).toBeInstanceOf(Function);
});
test('JSONToDate returns the correct date string', () => {
expect(JSONToDate(/Date(1489525200000)/)).toBe("14/3/2017");
});