Skip to content

Commit 71c38f9

Browse files
committed
Add test for boolean support
1 parent 70f1663 commit 71c38f9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/utils/smoke.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,19 @@ describe("database smoke", () => {
3838
const res2 = await db().selectFrom("birthdays").selectAll().executeTakeFirstOrThrow();
3939
expect(res).toStrictEqual(res2);
4040
});
41+
42+
test("booleans supported?", async () => {
43+
// TODO: Check if there is a builtin way of handling DB lifecycle
44+
await createDatabase();
45+
await using _ = defer(closeDatabase);
46+
await db()
47+
.insertInto("emoteUse")
48+
.values({
49+
channelId: "0",
50+
emoteId: 0,
51+
messageGuildId: "0",
52+
isReaction: false,
53+
})
54+
.execute();
55+
});
4156
});

0 commit comments

Comments
 (0)