decentralization refactor wip

This commit is contained in:
MapleLeaf
2021-12-19 16:38:32 -06:00
parent 1e5d448f9a
commit 9828b5c536
15 changed files with 151 additions and 110 deletions

View File

@@ -40,7 +40,7 @@ test.beforeEach(async () => {
await Promise.all(messages.map((message) => message.delete()))
})
test.serial("kitchen sink + destroy", async (t) => {
test.serial.only("kitchen sink + destroy", async (t) => {
const root = createRoot(channel)
await root.render(
@@ -110,18 +110,6 @@ test.serial("empty embed fallback", async (t) => {
await assertMessages(t, [{ embeds: [{ color: null, description: "_ _" }] }])
})
test.serial("invalid children error", (t) => {
const root = createRoot(channel)
t.throws(() =>
root.render(
<Text>
<Embed />
</Text>,
),
)
})
type MessageData = ReturnType<typeof extractMessageData>
function extractMessageData(message: Message) {
return {