clean up garbage

This commit is contained in:
itsMapleLeaf
2022-08-06 00:15:15 -05:00
parent 91c8e98e8c
commit cd22d75b3a
6 changed files with 546 additions and 891 deletions

View File

@@ -1,42 +1,40 @@
import React from "react"
import { test } from "vitest"
import { Link } from "../library/main"
import { ReacordTester } from "./test-adapter"
// import { ReacordTester } from "./test-adapter"
const tester = new ReacordTester()
// 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,
},
],
],
},
],
)
test.skip("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,
// },
// ],
// ],
// },
// ],
// )
})