fix issue with test make store helper

This commit is contained in:
Géry Debongnie
2019-03-04 09:57:48 +01:00
parent 78c6dca104
commit 5435dd6d25
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export function makeTestStore(services: Partial<Services> = {}): Store {
return store;
}
function mockFetch(route: string, params: any): Promise<any> {
export function mockFetch(route: string, params: any): Promise<any> {
if (route === "web/action/load") {
const action = actions.find(a => a.id === params.action_id);
return Promise.resolve(action);