"use strict"; const test = require("node:test"); const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const root = path.resolve(__dirname, "../.."); const app = fs.readFileSync(path.join(root, "Web/app.js"), "utf8"); const index = fs.readFileSync(path.join(root, "Web/index.html"), "utf8"); const bridge = fs.readFileSync(path.join(root, "MainWindow.LegacyComparisonImport.cs"), "utf8"); const host = fs.readFileSync(path.join(root, "MainWindow.xaml.cs"), "utf8"); const core = fs.readFileSync( path.join(root, "src/MBN_STOCK_WEBVIEW.Core/Data/LegacyComparisonPairImport.cs"), "utf8"); test("explicit one-time import is visible and persists only the normalized local schema", () => { assert.match(index, /id="comparisonImportLegacy"/u); assert.match(index, /