Test cleanup and fixes [c-d]
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const call = require('./call.js');
|
||||
|
||||
|
||||
test('call is a Function', () => {
|
||||
test('call is a Function', () => {
|
||||
expect(call).toBeInstanceOf(Function);
|
||||
});
|
||||
t.looseEqual(call('map', x => x * 2)([1, 2, 3]), [2, 4, 6], 'Calls function on given object');
|
||||
|
||||
test('Calls function on given object', () => {
|
||||
expect(call('map', x => x * 2)([1, 2, 3])).toBe([2, 4, 6]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user