MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / mockHistory

Function mockHistory

core/src/components/router/test/path.spec.tsx:314–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312});
313
314function mockHistory(): History {
315 return {
316 replaceState: jest.fn(),
317 pushState: jest.fn(),
318 length: 0,
319 } as any;
320}
321
322function mockLocation(pathname: string, hash: string): Location {
323 return {

Callers 1

path.spec.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected