Additional tests
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user