fix(medisa): Deleting price list should use remove (#1540)

This commit is contained in:
Oliver Windall Juhl
2022-05-19 18:56:58 +02:00
committed by GitHub
parent 58387936c9
commit f0ecef6b9a
2 changed files with 16 additions and 2 deletions

View File

@@ -945,6 +945,19 @@ describe("/admin/price-lists", () => {
object: "price-list",
deleted: true,
})
try {
await api.get("/admin/price-lists/pl_no_customer_groups", {
headers: {
Authorization: "Bearer test_token",
},
})
} catch (error) {
expect(error.response.status).toBe(404)
expect(error.response.data.message).toEqual(
"Price list with id: pl_no_customer_groups was not found"
)
}
})
})