Skip to content

Instantly share code, notes, and snippets.

@simonrenoult
Created May 18, 2018 14:45
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/769cbe49eef21dc68cce01ce23039bff to your computer and use it in GitHub Desktop.
Save simonrenoult/769cbe49eef21dc68cce01ce23039bff to your computer and use it in GitHub Desktop.
it("returns 201", async () => {
const product = { name: "tshirt", price: 20, weight: 0.1 };
const { statusCode } = await queryApi("POST", "/products", {body: data});
expect(statusCode).to.equal(201);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment