Skip to content

Commit 5342b5b

Browse files
committed
Fix tests for error color
1 parent 0936185 commit 5342b5b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

extensions/ql-vscode/test/vscode-tests/no-workspace/query-history/query-history.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,12 @@ describe("query-history", () => {
17091709
});
17101710

17111711
const treeItem = await historyTreeDataProvider.getTreeItem(mockQuery);
1712-
expect(treeItem.iconPath).toEqual(new vscode.ThemeIcon("error"));
1712+
expect(treeItem.iconPath).toEqual(
1713+
new vscode.ThemeIcon(
1714+
"error",
1715+
new vscode.ThemeColor("errorForeground"),
1716+
),
1717+
);
17131718
});
17141719

17151720
it("should get a tree item that failed before creating any results", async () => {
@@ -1719,7 +1724,12 @@ describe("query-history", () => {
17191724
});
17201725

17211726
const treeItem = await historyTreeDataProvider.getTreeItem(mockQuery);
1722-
expect(treeItem.iconPath).toEqual(new vscode.ThemeIcon("error"));
1727+
expect(treeItem.iconPath).toEqual(
1728+
new vscode.ThemeIcon(
1729+
"error",
1730+
new vscode.ThemeColor("errorForeground"),
1731+
),
1732+
);
17231733
});
17241734

17251735
it("should get a tree item that is in progress", async () => {

0 commit comments

Comments
 (0)