Created
January 12, 2017 22:48
-
-
Save rubberduck203/1ad40d0d64c5181d440d6c3826ea1271 to your computer and use it in GitHub Desktop.
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('when successful', () => { | |
it('should return all items', () => { | |
return todo.findAll(request, response) | |
.then(() => { | |
var actual = response._getData(); | |
expect(actual).to.deep.equal(testData); | |
}).catch((err) => { | |
throw err | |
}); | |
}); | |
it('should return a 200 ok', () => { | |
return todo.findAll(request, response) | |
.then(() => { | |
expect(response.statusCode).to.equal(200); | |
}).catch((err) => { | |
throw err; | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment