Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
const next = jest.fn();
const middleware = dataExplorerMiddleware(service)(api)(next);
middleware(dataExplorerActions.REQUEST_ITEMS({ id: "ServiceId" }));
const next = jest.fn();
const middleware = dataExplorerMiddleware(service)(api)(next);
middleware(dataExplorerActions.REQUEST_ITEMS({ id: "ServiceId" }));
- expect(config.requestItems).toHaveBeenCalled();
+ expect(api.dispatch).toHaveBeenCalledTimes(1);
});
it("handles SET_PAGE action", () => {
});
it("handles SET_PAGE action", () => {