Created
May 18, 2018 14:47
-
-
Save simonrenoult/abd0ad10e42d88ee1e88b517d84fa22e 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 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