mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
import gte from '../src/gte';
|
|
|
|
describe('gte', () => {
|
|
it('should return `true` if `value` >= `other`', () => {
|
|
expect(gte(3, 1)).toBe(true);
|
|
expect(gte(3, 3)).toBe(true);
|
|
expect(gte('def', 'abc')).toBe(true);
|
|
expect(gte('def', 'def')).toBe(true);
|
|
});
|
|
|
|
it('should return `false` if `value` is less than `other`', () => {
|
|
expect(gte(1, 3)).toBe(false);
|
|
expect(gte('abc', 'def')).toBe(false);
|
|
});
|
|
});
|