2023-05-10 05:40:31 +00:00
|
|
|
const {channelToKState} = require("./create-room")
|
|
|
|
const {kstateStripConditionals} = require("../../matrix/kstate")
|
2023-05-05 13:25:15 +00:00
|
|
|
const {test} = require("supertape")
|
|
|
|
const testData = require("../../test/data")
|
|
|
|
|
|
|
|
test("channel2room: general", async t => {
|
|
|
|
t.deepEqual(
|
|
|
|
kstateStripConditionals(await channelToKState(testData.channel.general, testData.guild.general).then(x => x.channelKState)),
|
|
|
|
testData.room.general
|
|
|
|
)
|
|
|
|
})
|