Archived
1
0

Fix extension install test

This is not a valid ID (to install a specific version you use @) and,
quite strangely, Code is now returning an "extension not found" error if
the ID is invalid, breaking the test since we expect it to error about
the marketplace not existing.
This commit is contained in:
Asher 2023-05-15 20:54:37 -08:00
parent 43ef50b404
commit 6745a46034
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -12,7 +12,7 @@ describe("--install-extension", () => {
setupFlags = ["--extensions-dir", tempDir] setupFlags = ["--extensions-dir", tempDir]
}) })
it("should use EXTENSIONS_GALLERY when set", async () => { it("should use EXTENSIONS_GALLERY when set", async () => {
const extName = `author.extension-1.0.0` const extName = "author.extension"
const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], { const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], {
EXTENSIONS_GALLERY: "{}", EXTENSIONS_GALLERY: "{}",
}) })