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