1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

Fix tests.

This commit is contained in:
Sam Rose 2024-03-01 13:59:55 +00:00
parent f876c5c6e4
commit f5f81a5fb0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ describe("/roles", () => {
it("should be able to get the role with a permission added", async () => {
const table = await config.createTable()
await config.api.permission.set({
await config.api.permission.add({
roleId: BUILTIN_ROLE_IDS.POWER,
resourceId: table._id,
level: PermissionLevel.READ,

View file

@ -92,7 +92,7 @@ export abstract class TestAPI {
const expectHeaders = expectations?.headers || {}
if (status !== 204 && !expectHeaders["Content-Type"]) {
expectHeaders["Content-Type"] = "application/json"
expectHeaders["Content-Type"] = /^application\/json/
}
let queryParams = []