Skip to content

Commit 87b0d60

Browse files
committed
test(diffs): remove private icon source mirrors
1 parent 7ce902c commit 87b0d60

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

‎extensions/diffs/src/viewer-client.test.ts‎

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,6 @@ function renderCard(payloadOverride?: string): void {
7272
}
7373

7474
describe("createToolbarButton icon safety", () => {
75-
it("toolbarIconSvg map exists and has exactly 8 icon names", () => {
76-
const requiredNames = [
77-
"split",
78-
"unified",
79-
"wrap-on",
80-
"wrap-off",
81-
"background-on",
82-
"background-off",
83-
"theme-dark",
84-
"theme-light",
85-
] as const;
86-
for (const name of requiredNames) {
87-
expect(
88-
VIEWER_CLIENT_SRC.includes(name + ":") || VIEWER_CLIENT_SRC.includes(`"${name}"`),
89-
`icon "${name}" should exist in toolbarIconSvg`,
90-
).toBe(true);
91-
}
92-
});
93-
9475
it("no iconMarkup: string parameter exists", () => {
9576
expect(VIEWER_CLIENT_SRC.includes("iconMarkup: string")).toBe(false);
9677
});
@@ -106,19 +87,6 @@ describe("createToolbarButton icon safety", () => {
10687
);
10788
}
10889
});
109-
110-
it("old icon functions are removed", () => {
111-
const removedFunctions = [
112-
"function splitIcon(",
113-
"function unifiedIcon(",
114-
"function wrapIcon(",
115-
"function backgroundIcon(",
116-
"function themeIcon(",
117-
];
118-
for (const fn of removedFunctions) {
119-
expect(VIEWER_CLIENT_SRC.includes(fn), `"${fn}" should be removed`).toBe(false);
120-
}
121-
});
12290
});
12391

12492
describe("hydrateViewer", () => {

0 commit comments

Comments
 (0)