Created
December 26, 2018 14:23
-
-
Save goldbergyoni/fdd628f0ca8d365fe94de4aada7c6630 to your computer and use it in GitHub Desktop.
Doing It Right Example: A human-readable expectation that could be understood easily, maybe even by QA or technical PM
This file contains hidden or 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
| it.only("When no product name, it throws error 400", async() => { | |
| expect(addNewProduct)).to.eventually.throw(AppError).with.property('code', "InvalidInput"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
expect(addNewProduct))have redundant closing bracket. Must beexpect(addNewProduct):)