Generated test files for new snippets

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

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

@ -0,0 +1,2 @@
const ary = (fn, n) => (...args) => fn(...args.slice(0, n));
module.exports = ary

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

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