mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
wip: migrate to bun
This commit is contained in:
15
test/add.spec.ts
Normal file
15
test/add.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import assert from 'node:assert';
|
||||
import add from '../src/add';
|
||||
|
||||
describe('add', () => {
|
||||
it('should add two numbers', () => {
|
||||
assert.strictEqual(add(6, 4), 10);
|
||||
assert.strictEqual(add(-6, 4), -2);
|
||||
assert.strictEqual(add(-6, -4), -10);
|
||||
});
|
||||
|
||||
it('should not coerce arguments to numbers', () => {
|
||||
assert.strictEqual(add('6', '4'), '64');
|
||||
assert.strictEqual(add('x', 'y'), 'xy');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user