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

5
test/bindKey/bindKey.js Normal file
View File

@ -0,0 +1,5 @@
const bindKey = (context, fn, ...args) =>
function() {
return context[fn].apply(context, args.concat(...arguments));
};
module.exports = bindKey

View File

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