Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
const JSONToDate = arr => {
|
||||
const dt = new Date(parseInt(arr.toString().substr(6)));
|
||||
return `${dt.getDate()}/${dt.getMonth() + 1}/${dt.getFullYear()}`;
|
||||
};
|
||||
module.exports = JSONToDate;
|
||||
@ -1,13 +0,0 @@
|
||||
const test = require('tape');
|
||||
const JSONToDate = require('./JSONToDate.js');
|
||||
|
||||
test('Testing JSONToDate', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof JSONToDate === 'function', 'JSONToDate is a Function');
|
||||
//t.deepEqual(JSONToDate(args..), 'Expected');
|
||||
//t.equal(JSONToDate(args..), 'Expected');
|
||||
//t.false(JSONToDate(args..), 'Expected');
|
||||
//t.throws(JSONToDate(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user