release: WRNexusJS 0.5.11
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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",
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user