File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,17 @@ describe("vscode", () => {
78
78
const errorMessage = `${ errorMsgPrefix } Could not set body background to theme background color. Document is undefined.`
79
79
80
80
expect ( ( ) => {
81
- setBodyBackgroundToThemeBackgroundColor ( undefined as any as Document , localStorage )
81
+ // @ts -expect-error
82
+ setBodyBackgroundToThemeBackgroundColor ( undefined , localStorage )
82
83
} ) . toThrowError ( errorMessage )
83
84
} )
84
85
it ( "should throw an error if localStorage is undefined" , ( ) => {
85
86
const errorMsgPrefix = "[vscode]"
86
87
const errorMessage = `${ errorMsgPrefix } Could not set body background to theme background color. localStorage is undefined.`
87
88
88
89
expect ( ( ) => {
89
- setBodyBackgroundToThemeBackgroundColor ( document , undefined as any as Storage )
90
+ // @ts -expect-error
91
+ setBodyBackgroundToThemeBackgroundColor ( document , undefined )
90
92
} ) . toThrowError ( errorMessage )
91
93
} )
92
94
it ( "should throw an error if it can't find colorThemeData in localStorage" , ( ) => {
You can’t perform that action at this time.
0 commit comments