mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
17 lines
539 B
TypeScript
17 lines
539 B
TypeScript
import assert from 'node:assert';
|
|
import gte from '../src/gte';
|
|
|
|
describe('gte', () => {
|
|
it('should return `true` if `value` >= `other`', () => {
|
|
assert.strictEqual(gte(3, 1), true);
|
|
assert.strictEqual(gte(3, 3), true);
|
|
assert.strictEqual(gte('def', 'abc'), true);
|
|
assert.strictEqual(gte('def', 'def'), true);
|
|
});
|
|
|
|
it('should return `false` if `value` is less than `other`', () => {
|
|
assert.strictEqual(gte(1, 3), false);
|
|
assert.strictEqual(gte('abc', 'def'), false);
|
|
});
|
|
});
|