1import { profile } from '../profile';
2it(`respects input types`, () => {
3  const fn = jest.fn((a: string, b: string) => {
4    if (typeof a === 'string') return 1;
5    if (typeof b === 'string') return -1;
6    return 0;
7  });
8  expect(profile(fn)('a', 'b')).toBe(1);
9  expect(fn).toBeCalledWith('a', 'b');
10});
11