release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
2026-08-02 23:18:51 +05:30
parent 87507edf59
commit 586a6db8ff
625 changed files with 243608 additions and 11210 deletions
+13 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test";
import { migrateV060WrnSource } from "../src/update.ts";
import { formatCurrentWrnSource, migrateV060WrnSource } from "../src/update.ts";
const report = () => ({
changedAutomatically: [],
@@ -30,4 +30,16 @@ describe("v0.6 source migration", () => {
expect(first).toContain("output.confirm({ ok: true })");
expect(second).toBe(first);
});
test("uses the canonical framework formatter idempotently", () => {
const source = `page Home {
view {
<button type="button" class="one two three four five six seven eight nine ten eleven twelve" @click='save()'>Save</button>
}
}`;
const formatted = formatCurrentWrnSource(source);
expect(formatted).toContain("<button\n");
expect(formatCurrentWrnSource(formatted)).toBe(formatted);
});
});