import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; const source = readFileSync(new URL("../src/features/files/FilesPage.tsx", import.meta.url), "utf8"); assert.match(source, /deleteFileConnectorSpace\(settings, target\.connector_space_id\)/); assert.match(source, /activeSpaceIsConnector &&[\s\S]*setConnectorSpaceRemovalTarget\(activeSpace\)/); assert.match(source, /Remote files and folders remain at the provider/); assert.match(source, /Imported GovOPlaN files, metadata and shares remain managed/); assert.match(source, /connector profile, credentials and remote references are not deleted/); console.log("Connector-space removal structure checks passed.");