import assert from 'node:assert/strict' import { readFileSync } from 'node:fs' const settingsModel = readFileSync(new URL('../src/utils/settingsModelHelper.js', import.meta.url), 'utf8') const settingsView = readFileSync(new URL('../src/views/SettingsView.vue', import.meta.url), 'utf8') const settingsStyles = readFileSync(new URL('../src/assets/styles/views/settings-view.css', import.meta.url), 'utf8') function testRenderingSectionUsesConciseToolbarTitle() { assert.match(settingsModel, /title:\s*'文件渲染'/) assert.doesNotMatch(settingsModel, /title:\s*'ONLYOFFICE 文件渲染配置'/) } function testRenderingCardRemovesDuplicatedDescription() { assert.match(settingsView, /