chore: fix integration tests (#1240)

* chore: fix integration tests

* chore: fix integration tests

* fix: store tests

* fix: store tests

* fix: cleanup
This commit is contained in:
Sebastian Rindom
2022-03-25 15:08:54 +01:00
committed by GitHub
parent a610805917
commit e4af6b8f9c
13 changed files with 119 additions and 104 deletions
@@ -58,7 +58,7 @@ describe("/store/customers", () => {
expect(response.data.customer).not.toHaveProperty("password_hash")
})
it("responds 409 on duplicate", async () => {
it("responds 422 on duplicate", async () => {
const api = useApi()
const response = await api
@@ -70,7 +70,7 @@ describe("/store/customers", () => {
})
.catch((err) => err.response)
expect(response.status).toEqual(402)
expect(response.status).toEqual(422)
})
})