1
0
Fork 0
out-of-your-element-fork-th.../m2d/converters/utils.test.js

16 lines
410 B
JavaScript

// @ts-check
const {test} = require("supertape")
const {eventSenderIsFromDiscord} = require("./utils")
test("sender type: matrix user", t => {
t.notOk(eventSenderIsFromDiscord("@cadence:cadence.moe"))
})
test("sender type: ooye bot", t => {
t.ok(eventSenderIsFromDiscord("@_ooye_bot:cadence.moe"))
})
test("sender type: ooye puppet", t => {
t.ok(eventSenderIsFromDiscord("@_ooye_sheep:cadence.moe"))
})