Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created May 16, 2018 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrenoult/4d964795b6077eb8f1a3156c28f79998 to your computer and use it in GitHub Desktop.
Save simonrenoult/4d964795b6077eb8f1a3156c28f79998 to your computer and use it in GitHub Desktop.
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