Last active
June 16, 2018 10:39
-
-
Save jeffijoe/429156496df73a0e313d1b4646b02094 to your computer and use it in GitHub Desktop.
Snippet for my Medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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