Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -69,7 +69,7 @@ describe('RequirePermission', () => {
|
||||
children={<div>content</div>}
|
||||
/>,
|
||||
),
|
||||
).rejects.toThrowError('Reached NotFound Page');
|
||||
).rejects.toThrow('Reached NotFound Page');
|
||||
});
|
||||
|
||||
it('Renders custom error page if not authorized', async () => {
|
||||
|
||||
@@ -83,6 +83,6 @@ describe('usePermission', () => {
|
||||
const { findByText } = renderComponent(mockPermissionApi);
|
||||
|
||||
expect(mockPermissionApi.authorize).toHaveBeenCalledWith({ permission });
|
||||
await expect(findByText('content')).rejects.toThrowError();
|
||||
await expect(findByText('content')).rejects.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user