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