16 lines
778 B
TypeScript
16 lines
778 B
TypeScript
// SPEC: PJ2026-010401 Web工作台.
|
|
// Responsibility: Keep the conversation as the dominant Workbench surface.
|
|
|
|
import assert from "node:assert/strict";
|
|
import fs from "node:fs";
|
|
import test from "node:test";
|
|
|
|
const viewSource = fs.readFileSync(new URL("../src/views/workbench/CodeWorkbenchView.vue", import.meta.url), "utf8");
|
|
const styleSource = fs.readFileSync(new URL("../src/styles/workbench.css", import.meta.url), "utf8");
|
|
|
|
test("Workbench gives the former node-ops pane width to the conversation", () => {
|
|
assert.doesNotMatch(viewSource, /HwpodNodeOpsPanel|workbench-tools-column/u);
|
|
assert.match(styleSource, /\.workbench-grid\s*\{[^}]*grid-template-columns:\s*auto minmax\(0, 1fr\);/su);
|
|
assert.doesNotMatch(styleSource, /\.workbench-tools-column\s*\{/u);
|
|
});
|