We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eddacda commit 24f54f2Copy full SHA for 24f54f2
1 file changed
test/styles.test.ts
@@ -129,6 +129,14 @@ describe("buildThemeCSS", () => {
129
expect(afterMedia).toContain(DARK_COLORS);
130
});
131
132
+ it('"auto" → ダーク側の --gce-code-text が @media ブロック内に現れる', () => {
133
+ const css = buildThemeCSS("auto");
134
+ const mediaStart = css.indexOf("@media (prefers-color-scheme: dark)");
135
+ expect(mediaStart).toBeGreaterThan(-1);
136
+ const afterMedia = css.slice(mediaStart);
137
+ expect(afterMedia).toContain("--gce-code-text: #e6edf3");
138
+ });
139
+
140
it('"auto" → LIGHT_COLORS が DARK_COLORS より前に現れる', () => {
141
const css = buildThemeCSS("auto");
142
expect(css.indexOf(LIGHT_COLORS)).toBeLessThan(css.indexOf(DARK_COLORS));
0 commit comments