0eb7c32585
Frontend source is needed for development/building the SPA. Only Node.js runtime server code should be removed.
14 lines
596 B
TypeScript
14 lines
596 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
|
|
describe('Settings route selector modal extraction', () => {
|
|
it('no longer keeps a downstream route selector inside Settings', () => {
|
|
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/Settings.tsx'), 'utf8').replace(/\r\n/g, '\n');
|
|
|
|
expect(source).not.toContain("import RouteSelectorModal from './settings/RouteSelectorModal.js'");
|
|
expect(source).not.toContain('selectorOpen');
|
|
expect(source).not.toContain('selectorRoutes');
|
|
});
|
|
});
|