mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
wip: migrate to bun
This commit is contained in:
16
test/lt.spec.ts
Normal file
16
test/lt.spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import assert from 'node:assert';
|
||||
import lt from '../src/lt';
|
||||
|
||||
describe('lt', () => {
|
||||
it('should return `true` if `value` is less than `other`', () => {
|
||||
assert.strictEqual(lt(1, 3), true);
|
||||
assert.strictEqual(lt('abc', 'def'), true);
|
||||
});
|
||||
|
||||
it('should return `false` if `value` >= `other`', () => {
|
||||
assert.strictEqual(lt(3, 1), false);
|
||||
assert.strictEqual(lt(3, 3), false);
|
||||
assert.strictEqual(lt('def', 'abc'), false);
|
||||
assert.strictEqual(lt('def', 'def'), false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user