mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 03:23:04 +00:00
Fix bug with umwarranted error messages
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user