// Tests for Syndria98/dragonroll#91: the column that opens the character sheet — the portrait with // the armor class, the speed, the bonuses and both pools under it — stays on screen whoever's tab is // open, instead of being the ability scores tab's own content and disappearing when the sheet moves // to the inventory, the traits or the spells. // // The window is a `.vue` file and the repository root installs no dependencies for the frontend, so // the template and the styles are read out of the source the way tests/character-sheet-tabs.test.js // and tests/character-sheet-portrait-column.test.js read them. // // 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 template = /