Skip to content

Instantly share code, notes, and snippets.

@togakangaroo
Created November 13, 2019 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save togakangaroo/af7b76a74eefa676f456c8f9523678e5 to your computer and use it in GitHub Desktop.
Save togakangaroo/af7b76a74eefa676f456c8f9523678e5 to your computer and use it in GitHub Desktop.
import { expect } from 'chai'
describe(`Given a stopwatch`, () => {
let sw
beforeEach(() => sw = createStopWatch())
it(`shows nothing on main display`, () => expect(sw.displays.main).to.equal(null))
it(`shows no laps`, () => expect(sw.displays.laps).to.deep.equal([]))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment