build: Upgrade lint related packages (#7790)

This commit is contained in:
Csaba Tuncsik
2023-11-27 09:11:52 +01:00
committed by GitHub
parent d2c18c5727
commit 152883eed1
22 changed files with 149 additions and 303 deletions

View File

@@ -57,7 +57,7 @@ describe('RBAC store', () => {
const newScope = 'example:list' as Scope;
const rbacStore = useRBACStore();
rbacStore.addResourceScope(newScope, { resourceId: '1', resourceType: 'variable' });
expect(rbacStore.scopesByResourceId['variable']['1']).toContain(newScope);
expect(rbacStore.scopesByResourceId.variable['1']).toContain(newScope);
});
it('should not add resource scope if it already exists', () => {
@@ -66,7 +66,7 @@ describe('RBAC store', () => {
rbacStore.addResourceScope(newScope, { resourceId: '1', resourceType: 'variable' });
rbacStore.addResourceScope(newScope, { resourceId: '1', resourceType: 'variable' });
expect(
rbacStore.scopesByResourceId['variable']['1'].filter((scope) => scope === newScope),
rbacStore.scopesByResourceId.variable['1'].filter((scope) => scope === newScope),
).toHaveLength(1);
});
});