Travis build: 1358 [cron]
This commit is contained in:
3
test/matches/matches.js
Normal file
3
test/matches/matches.js
Normal file
@ -0,0 +1,3 @@
|
||||
const matches = (obj, source) =>
|
||||
Object.keys(source).every(key => obj.hasOwnProperty(key) && obj[key] === source[key]);
|
||||
module.exports = matches
|
||||
13
test/matches/matches.test.js
Normal file
13
test/matches/matches.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const matches = require('./matches.js');
|
||||
|
||||
test('Testing matches', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof matches === 'function', 'matches is a Function');
|
||||
//t.deepEqual(matches(args..), 'Expected');
|
||||
//t.equal(matches(args..), 'Expected');
|
||||
//t.false(matches(args..), 'Expected');
|
||||
//t.throws(matches(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user