permission-node: switch to array for getResources return value
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -276,10 +276,9 @@ describe('PermissionIntegrationClient', () => {
|
||||
createPermissionIntegrationRouter({
|
||||
resourceType: 'test-resource',
|
||||
getResources: async resourceRefs =>
|
||||
resourceRefs.reduce((acc, ref) => {
|
||||
acc[ref] = { id: ref };
|
||||
return acc;
|
||||
}, {} as Record<string, { id: string }>),
|
||||
resourceRefs.map(resourceRef => ({
|
||||
id: resourceRef,
|
||||
})),
|
||||
rules: [
|
||||
{
|
||||
name: 'RULE_1',
|
||||
|
||||
Reference in New Issue
Block a user