mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
wip: code formatting nits continued
This commit is contained in:
16
test/lte.spec.js
Normal file
16
test/lte.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import lte from '../src/lte';
|
||||
import lt from '../src/lt';
|
||||
|
||||
describe('lte', () => {
|
||||
it('should return `true` if `value` is <= `other`', () => {
|
||||
expect(lte(1, 3)).toBe(true);
|
||||
expect(lte(3, 3)).toBe(true);
|
||||
expect(lte('abc', 'def')).toBe(true);
|
||||
expect(lte('def', 'def')).toBe(true);
|
||||
});
|
||||
|
||||
it('should return `false` if `value` > `other`', () => {
|
||||
expect(lt(3, 1)).toBe(false);
|
||||
expect(lt('def', 'abc')).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user