Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 204 Bytes

example.md

File metadata and controls

18 lines (13 loc) · 204 Bytes

adder

// add.js
export default (a, b) => a + b

And write a test for it:

// add.test.js
import add from './add'

it('should add two numbers', () => {
  assert(add(1, 2) === 3)
})