Added a basic test for initDashboard thunk

This commit is contained in:
Torkel Ödegaard
2019-02-06 14:35:53 +01:00
parent 08a86250be
commit a53c3b45fc
7 changed files with 158 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
import { UserState } from 'app/types';
import config from 'app/core/config';
export const initialState: UserState = {
orgId: config.bootData.user.orgId,
};
export const userReducer = (state = initialState, action: any): UserState => {
return state;
};
export default {
user: userReducer,
};