test: relax SimpleInstaller not-installed assertion to accept i18n key string on Ubuntu

This commit is contained in:
matt-rudolph 2025-09-19 14:59:00 -06:00
parent 4d3433d74c
commit d3a24a3c6a

View file

@ -283,7 +283,7 @@ describe("SimpleInstaller", () => {
// Mock that the mode doesn't exist in the list
vi.mocked(mockCustomModesManager.getCustomModes).mockResolvedValueOnce([])
await expect(installer.removeItem(mockModeItem, { target: "project" })).rejects.toThrow(/Mode not found/)
await expect(installer.removeItem(mockModeItem, { target: "project" })).rejects.toThrow(/(Mode not found|customModes\.errors\.modeNotFound)/)
expect((mockCustomModesManager as any).deleteCustomModeForSource).not.toHaveBeenCalled()
})