Archived
1
0

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

View File

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