projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.curoverse.com:arvados-workbench2 into 14307-search-basic...
[arvados-workbench2.git]
/
src
/
store
/
auth
/
auth-reducer.test.ts
diff --git
a/src/store/auth/auth-reducer.test.ts
b/src/store/auth/auth-reducer.test.ts
index 28cfbb2ec7edc8b72de30eb073ee4961184e0046..1202bacb125b5e1afc61908cb64f9953946b41f6 100644
(file)
--- a/
src/store/auth/auth-reducer.test.ts
+++ b/
src/store/auth/auth-reducer.test.ts
@@
-6,14
+6,20
@@
import { authReducer, AuthState } from "./auth-reducer";
import { AuthAction, authActions } from "./auth-action";
import 'jest-localstorage-mock';
import { AuthAction, authActions } from "./auth-action";
import 'jest-localstorage-mock';
-import { createServices } from "../../services/services";
+import { createServices } from "~/services/services";
+import { mockConfig } from '~/common/config';
+import { ApiActions } from "~/services/api/api-actions";
describe('auth-reducer', () => {
let reducer: (state: AuthState | undefined, action: AuthAction) => any;
describe('auth-reducer', () => {
let reducer: (state: AuthState | undefined, action: AuthAction) => any;
+ const actions: ApiActions = {
+ progressFn: (id: string, working: boolean) => {},
+ errorFn: (id: string, message: string) => {}
+ };
beforeAll(() => {
localStorage.clear();
beforeAll(() => {
localStorage.clear();
- reducer = authReducer(createServices(
{ API_HOST: "/arvados/v1", KEEP_WEB_HOST: "" }
));
+ reducer = authReducer(createServices(
mockConfig({}), actions
));
});
it('should correctly initialise state', () => {
});
it('should correctly initialise state', () => {