chore: Bump package versions to address security vulnerabilities (#3845)

This commit is contained in:
Pevey
2023-04-16 10:37:43 +02:00
committed by GitHub
parent 9b9055a8bf
commit d2826872fe
9 changed files with 156 additions and 65 deletions
@@ -4,6 +4,7 @@ import { DiscountServiceMock } from "../../../../../services/__mocks__/discount"
const validRegionId = IdMap.getId("region-france")
jest.setTimeout(30000)
describe("POST /admin/discounts", () => {
const adminSession = {
jwt: {
@@ -81,7 +81,9 @@ describe("POST /admin/orders/:id/claims", () => {
it("throws an error", () => {
expect(subject.status).toEqual(400)
expect(subject.body.message).toEqual("type must be a valid enum value")
expect(subject.body.message).toEqual(
"type must be one of the following values: refund, replace"
)
})
})
@@ -166,7 +168,7 @@ describe("POST /admin/orders/:id/claims", () => {
it("throws an error", () => {
expect(subject.status).toEqual(400)
expect(subject.body.message).toEqual(
"reason must be a valid enum value"
"reason must be one of the following values: missing_item, wrong_item, production_failure, other"
)
})
})
@@ -112,7 +112,7 @@ describe("POST /price-lists", () => {
it("returns descriptive error that several fields are missing", () => {
expect(subject.body.type).toEqual("invalid_data")
expect(subject.body.message).toEqual(
"name must be a string, type must be a valid enum value, prices must be an array"
"name must be a string, type must be one of the following values: sale, override, prices must be an array"
)
})
})