Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent a78f5db260
commit 026c65a5e6
151 changed files with 753 additions and 373 deletions

View File

@ -5,6 +5,8 @@ const unary = require('./unary.js');
test('unary is a Function', () => {
expect(unary).toBeInstanceOf(Function);
});
t.deepEqual(['6', '8', '10'].map(unary(parseInt)), [6, 8, 10], 'Discards arguments after the first one');
test('Discards arguments after the first one', () => {
expect(['6', '8', '10'].map(unary(parseInt)), [6, 8, 10]).toEqual()
});