pleroma/src/utils/comparators.test.ts
marcin mikołajczak 252b8f2ea5 Require newline
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-20 13:02:36 +02:00

7 lines
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);
});