Skip to content

Commit 8da08ac

Browse files
committed
fixup!
1 parent 1a10e2b commit 8da08ac

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

test/unit/browser/pages/vscode.test.ts

-28
Original file line numberDiff line numberDiff line change
@@ -177,34 +177,6 @@ describe("vscode", () => {
177177
})
178178
})
179179
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-
})
208180
it("should throw an error if options.csStaticBase is undefined or an empty string in context", () => {
209181
let options:
210182
| {

0 commit comments

Comments
 (0)