feat: 搭建设计生成工作台骨架
This commit is contained in:
1 parent
bf4bbf81c7
commit
083a323c1f
20 files changed
+587
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import { renderDesignSpec } from "@personal-brand/design-spec";
|
||||
import { sampleSpec } from "../src/samples.ts";
|
||||
|
||||
test("sample renders a design preview", () => {
|
||||
const html = renderDesignSpec(sampleSpec);
|
||||
assert.match(html, /data-template-section="contact"/);
|
||||
assert.match(html, /data-action="contact"/);
|
||||
});
|
||||
Reference in new issue
Block a user