Skip to content

Commit 4e489f1

Browse files
authored
Update register.test.ts
1 parent d71649a commit 4e489f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/browser/register.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("register", () => {
155155
await registerServiceWorker()
156156

157157
expect(mockFn).toBeCalled()
158-
expect(serviceWorkerPath).toMatch(`${csStaticBasePath}/dist/serviceWorker.js`)
158+
expect(serviceWorkerPath).toMatch(`${csStaticBasePath}/out/browser/serviceWorker.js`)
159159
expect(serviceWorkerScope).toMatch("/")
160160
})
161161
it("should register when options.base is defined", async () => {
@@ -176,7 +176,7 @@ describe("register", () => {
176176
await registerServiceWorker()
177177

178178
expect(mockFn).toBeCalled()
179-
expect(serviceWorkerPath).toMatch(`/dist/serviceWorker.js`)
179+
expect(serviceWorkerPath).toMatch(`/out/browser/serviceWorker.js`)
180180
expect(serviceWorkerScope).toMatch("/")
181181
})
182182
})

0 commit comments

Comments
 (0)