MCPcopy Index your code
hub / github.com/simstudioai/sim / setLocation

Function setLocation

apps/sim/lib/core/utils/urls.test.ts:26–32  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

24} from '@/lib/core/utils/urls'
25
26function setLocation(url: string) {
27 Object.defineProperty(window, 'location', {
28 value: new URL(url),
29 writable: true,
30 configurable: true,
31 })
32}
33
34describe('getBrowserOrigin', () => {
35 it('returns the page origin in the browser', () => {

Callers 1

urls.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected