import test from 'ava'; import m from '..'; test('function', t => { t.notThrows(() => m(() => {}, m.function)); // tslint:disable-line:no-empty t.throws(() => m('foo', m.function), 'Expected argument to be of type `function` but received type `string`'); t.throws(() => m(12, m.function), 'Expected argument to be of type `function` but received type `number`'); });