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/add.spec.ts Normal file
View 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');
});
});