remove uncessary test non we default to users being no access
This commit is contained in:
parent
921a287666
commit
3914501084
|
@ -111,7 +111,6 @@
|
||||||
await admin.init()
|
await admin.init()
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
await API.updateOwnMetadata({ roleId: $values.roleId })
|
|
||||||
await auth.setInitInfo({})
|
await auth.setInitInfo({})
|
||||||
|
|
||||||
// Create a default home screen if no template was selected
|
// Create a default home screen if no template was selected
|
||||||
|
|
|
@ -23,20 +23,6 @@ describe("/users", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("fetch", () => {
|
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 () => {
|
it("should apply authorization to endpoint", async () => {
|
||||||
await config.createUser()
|
await config.createUser()
|
||||||
|
|
Loading…
Reference in New Issue