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

This commit is contained in:
Pevey
2023-04-16 03:37:43 -05:00
committed by GitHub
parent 9b9055a8bf
commit d2826872fe
9 changed files with 156 additions and 65 deletions

View File

@@ -54,39 +54,6 @@ describe("/admin/currencies", () => {
expect(response.data).toMatchSnapshot()
})
})
describe("POST /admin/currencies/:code", function () {
beforeEach(async () => {
try {
await adminSeeder(dbConnection)
} catch (e) {
console.error(e)
}
})
afterEach(async () => {
const db = useDb()
await db.teardown()
})
it("should fail when attempting to update includes_tax", async () => {
const api = useApi()
try {
await api.post(
`/admin/currencies/aed`,
{
includes_tax: true,
},
adminReqConfig
)
} catch (error) {
expect(error.response.data.message).toBe(
"property includes_tax should not exist"
)
}
})
})
})
describe("[MEDUSA_FF_TAX_INCLUSIVE_PRICING] /admin/currencies", () => {
let medusaProcess

View File

@@ -324,7 +324,7 @@ describe("/admin/discounts", () => {
expect(err.response.status).toEqual(400)
expect(err.response.data.type).toEqual("invalid_data")
expect(err.response.data.message).toEqual(
"type must be a valid enum value"
"type must be one of the following values: fixed, percentage, free_shipping"
)
})
})

View File

@@ -1654,7 +1654,7 @@ describe("/admin/orders", () => {
)
})
it("fails to lists all orders with an invalid status", async () => {
it.only("fails to lists all orders with an invalid status", async () => {
expect.assertions(3)
const api = useApi()
@@ -1664,7 +1664,7 @@ describe("/admin/orders", () => {
expect(err.response.status).toEqual(400)
expect(err.response.data.type).toEqual("invalid_data")
expect(err.response.data.message).toEqual(
"each value in status must be a valid enum value"
"each value in status must be one of the following values: pending, completed, archived, canceled, requires_action"
)
})
})