We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1d548a commit 4cb2ef1Copy full SHA for 4cb2ef1
1 file changed
test/styles.test.ts
@@ -170,11 +170,9 @@ describe("CSS (テーマ: light)", () => {
170
});
171
172
it("td.gce-code に基本テキスト色の CSS 変数を含む", () => {
173
- const selectorIdx = CSS.indexOf(".gce-container .gce-table td.gce-code {");
174
- expect(selectorIdx).toBeGreaterThan(-1);
175
- const blockContent = CSS.slice(selectorIdx);
176
- const blockEnd = blockContent.indexOf("}");
177
- expect(blockContent.slice(0, blockEnd)).toContain("color: var(--gce-code-text)");
+ const match = CSS.match(/\.gce-container \.gce-table td\.gce-code \{([^}]*)\}/);
+ expect(match).not.toBeNull();
+ expect(match![1]).toContain("color: var(--gce-code-text)");
178
179
180
it("scrollbar-color サポートブラウザ向けの @supports ブロックを含む", () => {
0 commit comments