Skip to content

Instantly share code, notes, and snippets.

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