MCPcopy Create free account
hub / github.com/dailydotdev/apps / goBack

Function goBack

packages/shared/src/hooks/useCloseOnBack.spec.ts:40–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 });
39
40 const goBack = async () => {
41 const count = nextRouted.length;
42 act(() => window.history.back());
43 await waitFor(() => expect(nextRouted).toHaveLength(count + 1));
44 };
45
46 it('closes on back without the page under it routing', async () => {
47 const onBack = jest.fn();

Callers 2

Calls 1

backMethod · 0.80

Tested by

no test coverage detected