const { test } = require('node:test'); const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const root = path.join(__dirname, '..'); function read(relativePath) { return fs.readFileSync(path.join(root, relativePath), 'utf8'); } test('top bar model selector is removed and omitted selections use backend default', () => { const app = read('public/js/app.js'); const selector = app.match(/function getSelectedModel\(\) \{[\s\S]*?\n\}/)[0]; assert.doesNotMatch(selector, /global-model-select|gemini-2\.5-flash/); assert.match(selector, /return undefined/); });