2022-11-15 12:48:54 -08:00
|
|
|
import { compareId } from '../comparators';
|
2022-08-05 08:59:48 -07:00
|
|
|
|
|
|
|
test('compareId', () => {
|
|
|
|
expect(compareId('3', '3')).toBe(0);
|
|
|
|
expect(compareId('10', '1')).toBe(1);
|
|
|
|
expect(compareId('99', '100')).toBe(-1);
|
2022-11-15 12:48:54 -08:00
|
|
|
});
|