mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 20:32:50 +02:00
Code coverage reporting
This commit is contained in:
parent
0e6e5e61e4
commit
034f8d6b55
5 changed files with 9 additions and 2 deletions
|
@ -30,6 +30,11 @@ test("orm: select: all, where and pluck works on multiple columns", t => {
|
|||
t.deepEqual(names, ["cadence [they]"])
|
||||
})
|
||||
|
||||
test("orm: select: in array works", t => {
|
||||
const ids = select("emoji", "emoji_id", {name: ["online", "upstinky"]}).pluck().all()
|
||||
t.deepEqual(ids, ["288858540888686602", "606664341298872324"])
|
||||
})
|
||||
|
||||
test("orm: from: get pluck works", t => {
|
||||
const guildID = from("guild_space").pluck("guild_id").and("WHERE space_id = ?").get("!jjWAGMeQdNrVZSSfvz:cadence.moe")
|
||||
t.equal(guildID, data.guild.general.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue