Generated test files for new snippets

This commit is contained in:
Angelos Chalaris
2018-01-24 16:48:43 +02:00
parent 4d08ee48f7
commit 9534cdba4f
23 changed files with 229 additions and 5 deletions

2
test/delay/delay.js Normal file
View File

@ -0,0 +1,2 @@
const delay = (fn, wait, ...args) => setTimeout(fn, wait, ...args);
module.exports = delay

13
test/delay/delay.test.js Normal file
View File

@ -0,0 +1,13 @@
const test = require('tape');
const delay = require('./delay.js');
test('Testing delay', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof delay === 'function', 'delay is a Function');
//t.deepEqual(delay(args..), 'Expected');
//t.equal(delay(args..), 'Expected');
//t.false(delay(args..), 'Expected');
//t.throws(delay(args..), 'Expected');
t.end();
});