Skip to content

Commit 50e4396

Browse files
committed
Update HTML base path test
1 parent ddcbdb1 commit 50e4396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/node/routes/vscode.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ describe("vscode", () => {
3333
switch (route) {
3434
case "/":
3535
case "/vscode/":
36-
expect(html).toContain(`src="./oss-dev/static/`)
36+
expect(html).toMatch(/src="\.\/[a-z]+-[0-9a-z]+\/static\//)
3737
break
3838
case "/vscode":
39-
expect(html).toContain(`src="./vscode/oss-dev/static/`)
39+
expect(html).toMatch(/src="\.\/vscode\/[a-z]+-[0-9a-z]+\/static\//)
4040
break
4141
}
4242
}

0 commit comments

Comments
 (0)