This will be used as part of native migration to add specialRole field to RoleInfos. This function is (RawThreadInfos) => RawThreadInfos which we can pass to updateClientDBThreadStoreThreadInfos as the migrationFunc.
Details
Details
Unit tests. Want to test this behavior outside of the running app so it was easier to ensure correct behavior w/ debugger:
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- master
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/permissions/special-roles.test.js | ||
---|---|---|
217–225 | Just for the completeness of the test it could make sense to check if the role isn't default or admin, we don't set the specialRole field. |