Add test
This commit is contained in:
parent
a012c0a458
commit
8b5700774b
|
@ -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",
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue