fix: Apply strict schema for all body and query parameters (#7624)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-06-05 15:40:54 +00:00
1 parent a39b542759
commit d2e1e9f8c7
6 files changed
+31 -24

No files matched your search

@@ -174,21 +174,16 @@ medusaIntegrationTestRunner({
describe("POST /admin/customers", () => {
it("should create a customer", async () => {
const response = await api
.post(
"/admin/customers",
{
first_name: "newf",
last_name: "newl",
email: "new@email.com",
password: "newpassword",
metadata: { foo: "bar" },
},
adminHeaders
)
.catch((err) => {
console.log(err)
})
const response = await api.post(
"/admin/customers",
{
first_name: "newf",
last_name: "newl",
email: "new@email.com",
metadata: { foo: "bar" },
},
adminHeaders
)
expect(response.status).toEqual(200)
expect(response.data.customer).toEqual(