bigbuffet-rw/app/soapbox/utils/__tests__/comparators.test.ts
2022-11-16 08:35:29 -05:00

7 lines
No EOL
196 B
TypeScript

import { compareId } from '../comparators';
test('compareId', () => {
expect(compareId('3', '3')).toBe(0);
expect(compareId('10', '1')).toBe(1);
expect(compareId('99', '100')).toBe(-1);
});