15672: Fixes test
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 17 Jan 2020 16:40:36 +0000 (13:40 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 17 Jan 2020 16:40:36 +0000 (13:40 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/store/data-explorer/data-explorer-middleware.test.ts

index 4a858c272ef82f158f65734dba1f862434ff955c..17edba527212becff36db15d2f8a9436182075bd 100644 (file)
@@ -64,7 +64,7 @@ describe("DataExplorerMiddleware", () => {
         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", () => {