Fix tests for error color
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user