16 lines
410 B
JavaScript
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"))
|
|
})
|