Skip to content

Instantly share code, notes, and snippets.

@manolingam
Created November 23, 2019 12:20
Show Gist options
  • Save manolingam/4bf266efaf89f007d4d30e5952bb5bb4 to your computer and use it in GitHub Desktop.
Save manolingam/4bf266efaf89f007d4d30e5952bb5bb4 to your computer and use it in GitHub Desktop.

Revisions

  1. manolingam created this gist Nov 23, 2019.
    9 changes: 9 additions & 0 deletions functions.test.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    const functions = require('./functions.js')

    test('adds properly', () => {
    expect(functions.sum(1, 5)).toBe(6)
    })

    test('subtracts properly', () => {
    expect(functions.subtract(1, 2)).toBe(-1)
    })