generate new test that did already exist & update all module snippets with declaration
This commit is contained in:
4
test/README/README.js
Normal file
4
test/README/README.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = README = e = arr => {
|
||||
const dt = new Date(parseInt(arr.toString().substr(6)));
|
||||
return `${dt.getDate()}/${dt.getMonth() + 1}/${dt.getFullYear()}`;
|
||||
};
|
||||
13
test/README/README.test.js
Normal file
13
test/README/README.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const README = require('./README.js');
|
||||
|
||||
test('Testing README', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof README === 'function', 'README is a Function');
|
||||
//t.deepEqual(README(args..), 'Expected');
|
||||
//t.equal(README(args..), 'Expected');
|
||||
//t.false(README(args..), 'Expected');
|
||||
//t.throws(README(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user