Add compare_id tests
This commit is contained in:
parent
19ce510233
commit
027c871814
1 changed files with 7 additions and 0 deletions
7
app/soapbox/__tests__/compare_id.test.ts
Normal file
7
app/soapbox/__tests__/compare_id.test.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import compareId from '../compare_id';
|
||||
|
||||
test('compareId', () => {
|
||||
expect(compareId('3', '3')).toBe(0);
|
||||
expect(compareId('10', '1')).toBe(1);
|
||||
expect(compareId('99', '100')).toBe(-1);
|
||||
});
|
Loading…
Reference in a new issue