Files
rustfs-console/tests/lib/task-stats-button-source.test.js
T
2026-05-19 13:49:03 +08:00

10 lines
303 B
JavaScript

import test from "node:test"
import assert from "node:assert/strict"
import fs from "node:fs"
test("task stats drawer trigger renders the button as its child", () => {
const source = fs.readFileSync("components/tasks/stats-button.tsx", "utf8")
assert.match(source, /<DrawerTrigger\s+asChild>/)
})