15 lines
471 B
TypeScript
15 lines
471 B
TypeScript
import { expect, test } from "bun:test";
|
|
import { collectScripts } from "../src/runtime.ts";
|
|
|
|
test("accent controls load the shared theme runtime", () => {
|
|
expect(collectScripts('<button data-wire-accent-set="rose">Rose</button>')).toContain(
|
|
"/__wrnexus/theme.js",
|
|
);
|
|
});
|
|
|
|
test("accent clear controls load the shared theme runtime", () => {
|
|
expect(collectScripts("<button data-wire-accent-clear>Reset</button>")).toContain(
|
|
"/__wrnexus/theme.js",
|
|
);
|
|
});
|