import assert from "node:assert/strict";
import { test } from "bun:test";

import { hwlabNodeWebProbeHelp } from "../hwlab-node-help";

test("web-probe help promotes reusable Workbench debug and product Trace commands", () => {
  const help = hwlabNodeWebProbeHelp();
  const examples = Array.isArray(help.examples) ? help.examples.join("\n") : "";
  const notes = Array.isArray(help.notes) ? help.notes.join("\n") : "";
  assert.match(examples, /--type validateWorkbenchKafkaDebugReplay/u);
  assert.match(examples, /--type validateWorkbenchTraceReadability/u);
  assert.match(notes, /validateWorkbenchTraceReadability/u);
  assert.match(notes, /排除隔离调试面板/u);
});
