mirror of
https://github.com/rustfs/console.git
synced 2026-08-29 03:52:28 +08:00
11 lines
395 B
JavaScript
11 lines
395 B
JavaScript
import test from "node:test"
|
|
import assert from "node:assert/strict"
|
|
import fs from "node:fs"
|
|
|
|
test("right and left drawers fill the viewport height", () => {
|
|
const source = fs.readFileSync("components/ui/drawer.tsx", "utf8")
|
|
|
|
assert.equal(source.includes("data-[vaul-drawer-direction=right]:h-dvh"), true)
|
|
assert.equal(source.includes("data-[vaul-drawer-direction=left]:h-dvh"), true)
|
|
})
|