Skip to content

Commit e958fee

Browse files
committed
wip: fixup some stuff
1 parent ed14c98 commit e958fee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/browser/vscode.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@ describe("vscode", () => {
7878
const errorMessage = `${errorMsgPrefix} Could not set body background to theme background color. Document is undefined.`
7979

8080
expect(() => {
81-
setBodyBackgroundToThemeBackgroundColor(undefined as any as Document, localStorage)
81+
// @ts-expect-error
82+
setBodyBackgroundToThemeBackgroundColor(undefined, localStorage)
8283
}).toThrowError(errorMessage)
8384
})
8485
it("should throw an error if localStorage is undefined", () => {
8586
const errorMsgPrefix = "[vscode]"
8687
const errorMessage = `${errorMsgPrefix} Could not set body background to theme background color. localStorage is undefined.`
8788

8889
expect(() => {
89-
setBodyBackgroundToThemeBackgroundColor(document, undefined as any as Storage)
90+
// @ts-expect-error
91+
setBodyBackgroundToThemeBackgroundColor(document, undefined)
9092
}).toThrowError(errorMessage)
9193
})
9294
it("should throw an error if it can't find colorThemeData in localStorage", () => {

0 commit comments

Comments
 (0)