mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix issue with test make store helper
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user