test: Update PermissionTable to also test all ACP cases

This commit is contained in:
Joachim Van Herwegen
2022-08-22 09:15:21 +02:00
parent b3dd50a593
commit 56b7e63843
3 changed files with 122 additions and 32 deletions

View File

@@ -58,7 +58,7 @@ export class AcpReader extends PermissionReader {
const permissionMap: PermissionMap = new IdentifierMap();
// Resolves the targets sequentially so the `resourceCache` can be filled and reused
for (const target of requestedModes.keys()) {
for (const target of requestedModes.distinctKeys()) {
permissionMap.set(target, await this.extractPermissions(target, credentials, resourceCache));
}
return permissionMap;