// Tests for Syndria98/dragonroll#55: the character sheet splits its contents across bookmarks down // the right edge (ability scores, inventory, traits, spells) instead of stacking every panel on one // long page. // // The repository root installs no dependencies, so the window wiring is read from the sources the way // tests/item-sheet-window.test.js and tests/settings-window.test.js do it. // // Run with `npm test` from the repository root, or `node --test tests/`. const { test } = require("node:test"); const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const read = (...parts) => fs.readFileSync(path.join(__dirname, "..", ...parts), "utf8"); const sheetSource = read("frontend", "app", "components", "windows", "CharacterSheetWindow.vue"); const script = /