Fix test passing
authorDaniel Kos <daniel.kos@contractors.roche.com>
Thu, 2 Aug 2018 07:16:00 +0000 (09:16 +0200)
committerDaniel Kos <daniel.kos@contractors.roche.com>
Thu, 2 Aug 2018 07:16:00 +0000 (09:16 +0200)
Feature #13901

Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos@contractors.roche.com>

src/store/auth/auth-actions.test.ts

index dc399cfcfec9d256094213ea3855a47b777a1f88..1ded88ead6361fc28e5252ca92a5430a46219ee5 100644 (file)
@@ -3,7 +3,7 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { authReducer, AuthState } from "./auth-reducer";
-import { AuthAction, authActions, initAuth } from "./auth-action";
+import { AuthAction, initAuth } from "./auth-action";
 import {
     API_TOKEN_KEY,
     USER_EMAIL_KEY,
@@ -16,7 +16,7 @@ import {
 import 'jest-localstorage-mock';
 import { createServices } from "../../services/services";
 import { configureStore, RootStore } from "../store";
-import createBrowserHistory from "../../../node_modules/@types/history/createBrowserHistory";
+import createBrowserHistory from "history/createBrowserHistory";
 
 describe('auth-actions', () => {
     let reducer: (state: AuthState | undefined, action: AuthAction) => any;
@@ -51,6 +51,7 @@ describe('auth-actions', () => {
         });
     });
 
+    // TODO: Add remaining action tests
     /*
     it('should fire external url to login', () => {
         const initialState = undefined;