update unit test to catch exception

Necessary for tests to pass on node 16
update package-lock
This commit is contained in:
BryceLTaylor 2022-04-01 11:37:05 -04:00
parent 1bf6e69c79
commit 8da33efdaa
2 changed files with 32070 additions and 122 deletions

32190
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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);
});
});