odin-codespace/testing/src/sum.test.js

6 lines
104 B
JavaScript
Raw Normal View History

2024-02-16 16:07:49 -05:00
const sum = require('./sum');
test('adds 1 + 2 to equal 3', () => {
expect(sum(1, 2)).toBe(3);
});