Files
BossAI/src/web/pages/settings.factory-reset-modal.architecture.test.ts
T
boos 0eb7c32585 fix: restore frontend source code (src/web/) that was accidentally deleted
Frontend source is needed for development/building the SPA.
Only Node.js runtime server code should be removed.
2026-05-18 09:33:56 +08:00

13 lines
592 B
TypeScript

import { describe, expect, it } from 'vitest';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
describe('Settings factory reset modal extraction', () => {
it('delegates the destructive factory reset portal to a dedicated settings component', () => {
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/Settings.tsx'), 'utf8').replace(/\r\n/g, '\n');
expect(source).toContain("import FactoryResetModal from './settings/FactoryResetModal.js'");
expect(source).not.toContain('{factoryResetPresence.shouldRender && (() => {');
});
});