Skip to content

Instantly share code, notes, and snippets.

@jeffijoe
Last active June 16, 2018 10:39
Show Gist options
  • Save jeffijoe/429156496df73a0e313d1b4646b02094 to your computer and use it in GitHub Desktop.
Save jeffijoe/429156496df73a0e313d1b4646b02094 to your computer and use it in GitHub Desktop.
Snippet for my Medium article
describe('Todos Service', function () {
beforeEach(() {
subject = makeTodosService({
db: testDatabaseSomehow
})
})
it('works', async function () {
const todos = await subject.getTodos()
expect(todos.length).to.equal(3)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment