wip: migrate to bun

This commit is contained in:
jdalton
2023-09-16 14:47:50 -07:00
parent 2da024c3b4
commit 97d4a2fe19
1052 changed files with 30244 additions and 26856 deletions

15
test/multiply.spec.ts Normal file
View 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);
});
});