remove uncessary test non we default to users being no access

This commit is contained in:
Peter Clement 2022-07-26 15:34:56 +01:00
parent 921a287666
commit 3914501084
2 changed files with 0 additions and 15 deletions

View File

@ -111,7 +111,6 @@
await admin.init()
// Create user
await API.updateOwnMetadata({ roleId: $values.roleId })
await auth.setInitInfo({})
// Create a default home screen if no template was selected

View File

@ -23,20 +23,6 @@ describe("/users", () => {
})
describe("fetch", () => {
it("returns a list of users from an instance db", async () => {
await config.createUser("uuidx")
await config.createUser("uuidy")
const res = await request
.get(`/api/users/metadata`)
.set(config.defaultHeaders())
.expect("Content-Type", /json/)
.expect(200)
expect(res.body.length).toBe(3)
console.debug('test: ' + JSON.stringify(res.body))
expect(res.body.find(u => u._id === `ro_ta_users_us_uuidx`)).toBeDefined()
expect(res.body.find(u => u._id === `ro_ta_users_us_uuidy`)).toBeDefined()
})
it("should apply authorization to endpoint", async () => {
await config.createUser()