This commit is contained in:
Adria Navarro 2023-09-04 12:16:44 +02:00
parent a012c0a458
commit 8b5700774b
1 changed files with 12 additions and 0 deletions

View File

@ -260,4 +260,16 @@ describe("/permission", () => {
expect(publicPerm.name).toBeDefined() expect(publicPerm.name).toBeDefined()
}) })
}) })
describe("default permissions", () => {
it("legacy views", async () => {
const legacyView = await config.createView()
const res = await config.api.permission.get(legacyView.name)
expect(res.body).toBe({
read: "BASIC",
})
})
})
}) })