Created
May 16, 2018 07:57
-
-
Save simonrenoult/4d964795b6077eb8f1a3156c28f79998 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
it("returns the keys in error", async () => { | |
const { body, statusCode } = await queryApi("POST", "/products", { body: {} }); | |
const contextList = body.data.map(item => item.context.key); | |
expect(statusCode).to.equal(400); | |
expect(contextList).to.contain("name", "price", "weight"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment