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

Function setUserAgent

packages/shared/src/lib/func.spec.ts:22–23  ·  view source on GitHub ↗
(userAgent: string)

Source from the content-addressed store, hash-verified

20
21describe('isAndroidMetaInAppBrowser', () => {
22 const setUserAgent = (userAgent: string) =>
23 jest.spyOn(window.navigator, 'userAgent', 'get').mockReturnValue(userAgent);
24
25 afterEach(() => jest.restoreAllMocks());
26

Callers 1

func.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected