File tree 1 file changed +0
-28
lines changed
1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -177,34 +177,6 @@ describe("vscode", () => {
177
177
} )
178
178
} )
179
179
describe ( "getLoader" , ( ) => {
180
- it ( "should throw an error if window is undefined in context" , ( ) => {
181
- const options = {
182
- base : "/" ,
183
- csStaticBase : "/hello" ,
184
- logLevel : 1 ,
185
- }
186
- const nlsConfig = {
187
- first : "Jane" ,
188
- last : "Doe" ,
189
- locale : "en" ,
190
- availableLanguages : { } ,
191
- }
192
- const errorMsgPrefix = "[vscode]"
193
- const errorMessage = `${ errorMsgPrefix } Could not get loader. window is undefined or missing.`
194
- // @ts -expect-error We need to test when window is undefined
195
- window = undefined
196
- expect ( ( ) => {
197
- if ( typeof window === "undefined" ) {
198
- throw new Error ( errorMessage )
199
- }
200
-
201
- getLoader ( {
202
- origin : "localhost" ,
203
- nlsConfig : nlsConfig ,
204
- options,
205
- } )
206
- } ) . toThrowError ( errorMessage )
207
- } )
208
180
it ( "should throw an error if options.csStaticBase is undefined or an empty string in context" , ( ) => {
209
181
let options :
210
182
| {
You can’t perform that action at this time.
0 commit comments