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