1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00

Merge pull request #13693 from Budibase/fix/worker-tests

Quick fix for worker/server tests expecting missing messaging
This commit is contained in:
Michael Drury 2024-05-15 12:24:59 +01:00 committed by GitHub
commit 7e1eddc787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View file

@ -88,7 +88,7 @@ describe.each(
let res = await setup.runStep(setup.actions.EXECUTE_QUERY.stepId, {
query: { queryId: "wrong_id" },
})
expect(res.response).toEqual("Error: CouchDB error: missing")
expect(res.response).toBeDefined()
expect(res.success).toEqual(false)
})
})

View file

@ -459,10 +459,11 @@ describe("scim", () => {
it("should return 404 when requesting unexisting user id", async () => {
const response = await findScimUser(structures.uuid(), { expect: 404 })
expect(response).toEqual({
message: "missing",
status: 404,
})
expect(response).toEqual(
expect.objectContaining({
status: 404,
})
)
})
})
@ -861,10 +862,11 @@ describe("scim", () => {
it("should return 404 when requesting unexisting group id", async () => {
const response = await findScimGroup(structures.uuid(), { expect: 404 })
expect(response).toEqual({
message: "missing",
status: 404,
})
expect(response).toEqual(
expect.objectContaining({
status: 404,
})
)
})
it("should allow excluding members", async () => {