Add compare_id tests

This commit is contained in:
Alex Gleason 2022-08-05 10:59:48 -05:00
parent 19ce510233
commit 027c871814
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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