We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c218012 commit eddacdaCopy full SHA for eddacda
1 file changed
test/styles.test.ts
@@ -162,10 +162,11 @@ describe("CSS (テーマ: light)", () => {
162
});
163
164
it("td.gce-code に基本テキスト色の CSS 変数を含む", () => {
165
- const selectorIdx = CSS.indexOf("td.gce-code");
166
- const colorIdx = CSS.indexOf("color: var(--gce-code-text)");
+ const selectorIdx = CSS.indexOf(".gce-table td.gce-code {");
167
expect(selectorIdx).toBeGreaterThan(-1);
168
- expect(colorIdx).toBeGreaterThan(selectorIdx);
+ const blockContent = CSS.slice(selectorIdx);
+ const blockEnd = blockContent.indexOf("}");
169
+ expect(blockContent.slice(0, blockEnd)).toContain("color: var(--gce-code-text)");
170
171
172
it("scrollbar-color サポートブラウザ向けの @supports ブロックを含む", () => {
0 commit comments