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/partial/partial.js Normal file
View File

@ -0,0 +1,2 @@
const partial = (fn, ...partials) => (...args) => fn(...partials, ...args);
module.exports = partial

View File

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