add 2 basic test for zipObject snippet

This commit is contained in:
King
2018-01-10 16:37:10 -05:00
parent 8f55271baf
commit 40210c9cd9

View File

@ -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();
});
});