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