Created
December 19, 2017 16:49
-
-
Save ramon-src/67428754a1ba9e9f43de3150b6b55bd5 to your computer and use it in GitHub Desktop.
BDD example with Mocha
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('TaskStack', function(){ | |
describe('#add()', function(){ | |
it('must have one element', function(){ | |
const task = new Task(); | |
const taskStack = new TaskStack(); | |
taskStack.add(task); | |
taskStack.should.have.length(1); | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment