Skip to content

Commit 504dcfe

Browse files
committed
fixing Theme test. I was the config file!
1 parent c9eff15 commit 504dcfe

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

test/Themes.test.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
import { describe, expect, it } from "vitest";
1+
import { expect, test } from "vitest";
22
import { SCAD_EXT, THEMES } from "../src/core";
3-
import { createTestInstance, DISABLE_OPENSCAD } from "./_setup/eleventy";
3+
import { createTestInstance } from "./_setup/eleventy";
44

5-
const cases = THEMES.map((t) => [t]);
5+
const CASES = THEMES.map((t) => [t]);
66

7-
describe.for(cases)("%s", ([theme]) => {
7+
test.concurrent.for(CASES)("%s", async ([theme]) => {
88
const themeURL = `https://www.w3.org/StyleSheets/Core/${theme}`;
99

1010
const eleventy = createTestInstance({
1111
launchPath: "nightly",
1212
theme,
13+
noSTL: true,
1314
silent: true,
14-
...DISABLE_OPENSCAD,
1515
});
1616

17-
it("has the CSS URL in page", async () => {
18-
const pages = await eleventy.toJSON();
19-
const scadPages = pages.filter((p) => p.inputPath.endsWith(SCAD_EXT));
17+
const pages = await eleventy.toJSON();
18+
const scadPages = pages.filter((p) => p.inputPath.endsWith(SCAD_EXT));
2019

21-
expect(scadPages).toHaveLength(3);
22-
for (const page of scadPages) {
23-
expect(page.content.includes(themeURL)).toBeTruthy();
24-
}
25-
});
20+
expect(scadPages).toHaveLength(3);
21+
for (const page of scadPages) {
22+
expect(page.content).includes(themeURL);
23+
}
2624
});

0 commit comments

Comments
 (0)