Updating test case.
This commit is contained in:
parent
74870663e2
commit
99d867fe60
|
@ -165,11 +165,9 @@ describe("/roles", () => {
|
||||||
...basicRole(),
|
...basicRole(),
|
||||||
inherits: [BUILTIN_ROLE_IDS.ADMIN],
|
inherits: [BUILTIN_ROLE_IDS.ADMIN],
|
||||||
})
|
})
|
||||||
// save again
|
// remove the roles so that it will default back to DB roles, then save again
|
||||||
const updatedRes = await config.api.roles.save({
|
delete res.inherits
|
||||||
...res,
|
const updatedRes = await config.api.roles.save(res)
|
||||||
inherits: undefined,
|
|
||||||
})
|
|
||||||
expect(updatedRes.inherits).toEqual([BUILTIN_ROLE_IDS.ADMIN])
|
expect(updatedRes.inherits).toEqual([BUILTIN_ROLE_IDS.ADMIN])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue