mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
update unit test to catch exception
Necessary for tests to pass on node 16 update package-lock
This commit is contained in:
parent
1bf6e69c79
commit
8da33efdaa
2 changed files with 32070 additions and 122 deletions
32190
package-lock.json
generated
32190
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -79,7 +79,7 @@ describe('loadManagers', () => {
|
|||
api.mockImplementation((opts, callback) => {
|
||||
callback(null, null, {statusCode: 500});
|
||||
});
|
||||
store.dispatch(loadManagers());
|
||||
store.dispatch(loadManagers()).catch(() => {});
|
||||
expect(managers.selector(store.getState()).error).toBe(Errors.SERVER);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue