repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by admin
quickshell/nuguland/panels.test.mjs
Rawimport assert from "node:assert/strict";
import { readFileSync } from "node:fs";
// PopupHost loads registry panels only; it names no feature.
const host = readFileSync(new URL("PopupHost.qml", import.meta.url), "utf8");
assert.match(host, /return feature \? feature\.panel : null;/, "only registry popups have content");
assert.doesNotMatch(host, /case "|Panel \{/, "no feature cases or inline feature panels");
assert.match(host, /id: activeLoader[\s\S]*sourceComponent: root\.activeName\.length > 0 \? root\.contentComponent\(root\.activeName\) : null/);
assert.equal((host.match(/Behavior on opacity/g) || []).length, 2, "the loader fade and the card fade remain");
console.log("panels.test.mjs: ALL PASS");