mirror of
https://github.com/coder/code-server.git
synced 2026-11-28 14:47:34 +08:00
Update register.test.ts
This commit is contained in:
1 parent
d71649acb4
commit
4e489f19b5
1 file changed
+2
-2
@@ -155,7 +155,7 @@ describe("register", () => {
|
||||
await registerServiceWorker()
|
||||
|
||||
expect(mockFn).toBeCalled()
|
||||
expect(serviceWorkerPath).toMatch(`${csStaticBasePath}/dist/serviceWorker.js`)
|
||||
expect(serviceWorkerPath).toMatch(`${csStaticBasePath}/out/browser/serviceWorker.js`)
|
||||
expect(serviceWorkerScope).toMatch("/")
|
||||
})
|
||||
it("should register when options.base is defined", async () => {
|
||||
@@ -176,7 +176,7 @@ describe("register", () => {
|
||||
await registerServiceWorker()
|
||||
|
||||
expect(mockFn).toBeCalled()
|
||||
expect(serviceWorkerPath).toMatch(`/dist/serviceWorker.js`)
|
||||
expect(serviceWorkerPath).toMatch(`/out/browser/serviceWorker.js`)
|
||||
expect(serviceWorkerScope).toMatch("/")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user