Fix linting errors after #13392

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-08-30 13:43:57 +02:00
parent 3716ae33b2
commit aaab1e34da
151 changed files with 837 additions and 786 deletions
@@ -69,7 +69,7 @@ describe('ServerPermissionClient', () => {
discovery,
tokenManager: ServerTokenManager.noop(),
}),
).toThrowError(
).toThrow(
'Backend-to-backend authentication must be configured before enabling permissions. Read more here https://backstage.io/docs/tutorials/backend-to-backend-auth',
);
});
@@ -51,7 +51,7 @@ describe('permission integration utils', () => {
});
it('throws if there is no rule for the supplied name', () => {
expect(() => getRule('test-rule-3')).toThrowError(
expect(() => getRule('test-rule-3')).toThrow(
/unexpected permission rule/i,
);
});