Files
lodash/test/gte.spec.js
2023-09-16 22:59:56 -07:00

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