Fixed path events
All checks were successful
Build / Publish Docs (push) Successful in 49s
Build / Build NPM Project (push) Successful in 1m4s
Build / Tag Version (push) Successful in 9s

This commit is contained in:
2025-11-29 21:58:04 -05:00
parent 2240c93db5
commit 9cf86f4be1
3 changed files with 70 additions and 128 deletions

View File

@@ -60,6 +60,10 @@ describe('Path Events', () => {
expect(pe.none).toBe(false);
});
it('Test several wild card perms', () => {
expect(PathEvent.has(['actions:*', 'groups:*', 'users:*'], 'groups/AUTH:r')).toBe(true);
});
it('setters for methods', () => {
const pe = new PathEvent('users/system:r');
pe.create = true;