Untuck tests out of __tests__ directories, colocate with program files
This commit is contained in:
7
src/utils/comparators.test.ts
Normal file
7
src/utils/comparators.test.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { compareId } from './comparators';
|
||||
|
||||
test('compareId', () => {
|
||||
expect(compareId('3', '3')).toBe(0);
|
||||
expect(compareId('10', '1')).toBe(1);
|
||||
expect(compareId('99', '100')).toBe(-1);
|
||||
});
|
||||
Reference in New Issue
Block a user