Fix extension installation test

This throws now that the exit is non-zero.
This commit is contained in:
Asher 2024-04-05 17:22:51 -08:00
parent bec6ab2678
commit 73e615da4e
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 5 additions and 4 deletions

View File

@ -13,9 +13,10 @@ describe("--install-extension", () => {
}) })
it("should use EXTENSIONS_GALLERY when set", async () => { it("should use EXTENSIONS_GALLERY when set", async () => {
const extName = "author.extension" const extName = "author.extension"
const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], { await expect(
runCodeServerCommand([...setupFlags, "--install-extension", extName], {
EXTENSIONS_GALLERY: "{}", EXTENSIONS_GALLERY: "{}",
}) }),
expect(stderr).toMatch("No extension gallery service configured") ).rejects.toThrow("No extension gallery service configured")
}) })
}) })