Skip to content

Commit

Permalink
Fix extension installation test
Browse files Browse the repository at this point in the history
This throws now that the exit is non-zero.
  • Loading branch information
code-asher committed Apr 6, 2024
1 parent bec6ab2 commit 73e615d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/integration/installExtension.test.ts
Expand Up @@ -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")
})
})

0 comments on commit 73e615d

Please sign in to comment.