Function mockRouterContext
- mockRouterContext(push?: any, pathFor?: any): {
pathFor: any;
router: {
createHref: ((location: any) => string);
push: any;
};
}
-
Parameters
-
Optional
push: any
-
Optional
pathFor: any
Returns {
pathFor: any;
router: {
createHref: ((location: any) => string);
push: any;
};
}
-
pathFor: any
-
router: {
createHref: ((location: any) => string);
push: any;
}
-
createHref: ((location: any) => string)
-
- (location: any): string
-
Returns string
-
push: any