Skip to content

Commit 7a8da6e

Browse files
committed
add install
1 parent 4cbe69c commit 7a8da6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/browser/src/browser/__tests__/standalone-analytics.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ describe('standalone bundle', () => {
127127
// @ts-ignore ignore Response required fields
128128
.mockImplementation((): Promise<Response> => fetchSettings)
129129

130-
await AnalyticsBrowser.standalone('my-write-key')
130+
await install()
131131

132132
expect(unfetch).toHaveBeenCalledWith(
133-
'https://cdn.foo.com/v1/projects/my-write-key/settings'
133+
'https://cdn.foo.com/v1/projects/foo/settings'
134134
)
135135
})
136136

@@ -142,7 +142,7 @@ describe('standalone bundle', () => {
142142
const mockCdn = 'http://my-overridden-cdn.com'
143143

144144
window.analytics._cdn = mockCdn
145-
await AnalyticsBrowser.standalone('abc')
145+
await install()
146146

147147
expect(unfetch).toHaveBeenCalledWith(expect.stringContaining(mockCdn))
148148
})

0 commit comments

Comments
 (0)