Test cleanup and fixes [a-b]
This commit is contained in:
@ -5,6 +5,8 @@ const mapKeys = require('./mapKeys.js');
|
||||
test('mapKeys is a Function', () => {
|
||||
expect(mapKeys).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(mapKeys({ a: 1, b: 2 }, (val, key) => key + val), { a1: 1, b2: 2 }, 'Maps keys');
|
||||
test('Maps keys', () => {
|
||||
expect(mapKeys({ a: 1, b: 2 }, (val, key) => key + val), { a1: 1, b2: 2 }).toEqual()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user