Fix bug with umwarranted error messages

This commit is contained in:
Nathan Barber
2021-12-13 20:36:00 -05:00
parent 3893fb6d2c
commit 4704217dc5
4 changed files with 34 additions and 30 deletions

View File

@@ -33,11 +33,7 @@ var serverDashboardJsx = (spy) => (
);
var mockAsync = (data) =>
jest
.fn()
.mockImplementation(() =>
Promise.resolve({ json: () => Promise.resolve(data ? data : { k: "v" }) })
);
jest.fn().mockImplementation(() => Promise.resolve(data ? data : { k: "v" }));
var mockAsyncRejection = () =>
jest.fn().mockImplementation(() => Promise.reject());