Fix tests for error color

This commit is contained in:
Nora
2023-01-25 10:19:49 +00:00
parent 0936185d2f
commit 5342b5b83a

View File

@@ -1709,7 +1709,12 @@ describe("query-history", () => {
});
const treeItem = await historyTreeDataProvider.getTreeItem(mockQuery);
expect(treeItem.iconPath).toEqual(new vscode.ThemeIcon("error"));
expect(treeItem.iconPath).toEqual(
new vscode.ThemeIcon(
"error",
new vscode.ThemeColor("errorForeground"),
),
);
});
it("should get a tree item that failed before creating any results", async () => {
@@ -1719,7 +1724,12 @@ describe("query-history", () => {
});
const treeItem = await historyTreeDataProvider.getTreeItem(mockQuery);
expect(treeItem.iconPath).toEqual(new vscode.ThemeIcon("error"));
expect(treeItem.iconPath).toEqual(
new vscode.ThemeIcon(
"error",
new vscode.ThemeColor("errorForeground"),
),
);
});
it("should get a tree item that is in progress", async () => {