mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Update eslint-plugin-jest dependency
This commit is contained in:
@@ -489,7 +489,8 @@ describe('AppRunner', (): void => {
|
||||
});
|
||||
|
||||
it('throws an error if creating a ComponentsManager fails.', async(): Promise<void> => {
|
||||
(manager.configRegistry.register as jest.Mock).mockRejectedValueOnce(new Error('Fatal'));
|
||||
// eslint-disable-next-line jest/unbound-method
|
||||
jest.mocked(manager.configRegistry.register).mockRejectedValueOnce(new Error('Fatal'));
|
||||
|
||||
let caughtError: Error = new Error('should disappear');
|
||||
try {
|
||||
@@ -572,7 +573,8 @@ describe('AppRunner', (): void => {
|
||||
});
|
||||
|
||||
it('throws an error if non-error objects get thrown.', async(): Promise<void> => {
|
||||
(manager.configRegistry.register as jest.Mock).mockRejectedValueOnce('NotAnError');
|
||||
// eslint-disable-next-line jest/unbound-method
|
||||
jest.mocked(manager.configRegistry.register).mockRejectedValueOnce('NotAnError');
|
||||
|
||||
let caughtError: Error = new Error('should disappear');
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user