add 2 basic test for zipObject snippet
This commit is contained in:
@ -5,9 +5,10 @@ test('Testing zipObject', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof zipObject === 'function', 'zipObject is a Function');
|
||||
//t.deepEqual(zipObject(args..), 'Expected');
|
||||
t.deepEqual(zipObject(['a', 'b', 'c'], [1, 2]), {a: 1, b: 2, c: undefined}, 'Array was zipped to object');
|
||||
t.deepEqual(zipObject(['a', 'b'], [1, 2, 3]), {a: 1, b: 2}, 'Array was zipped to object');
|
||||
//t.equal(zipObject(args..), 'Expected');
|
||||
//t.false(zipObject(args..), 'Expected');
|
||||
//t.throws(zipObject(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user