workspace

This commit is contained in:
MapleLeaf
2021-12-29 13:19:46 -06:00
parent 3fa99f9ee2
commit 88e9919c8f
74 changed files with 237 additions and 2217 deletions

View File

@@ -0,0 +1,41 @@
import React from "react"
import { ReacordTester } from "../library/core/reacord-tester"
import { Link } from "../library/main"
const tester = new ReacordTester()
test("link", async () => {
await tester.assertRender(
<>
<Link url="https://example.com/">link text</Link>
<Link label="link text" url="https://example.com/" />
<Link label="link text" url="https://example.com/" disabled />
</>,
[
{
content: "",
embeds: [],
actionRows: [
[
{
type: "link",
url: "https://example.com/",
label: "link text",
},
{
type: "link",
url: "https://example.com/",
label: "link text",
},
{
type: "link",
url: "https://example.com/",
label: "link text",
disabled: true,
},
],
],
},
],
)
})