send sim messages to the proper rooms

This commit is contained in:
Cadence Ember 2023-05-09 15:29:46 +12:00
parent 7526d63690
commit da6603d258
10 changed files with 38 additions and 10 deletions

View file

@ -0,0 +1,11 @@
const {test} = require("supertape")
const assert = require("assert")
const reg = require("./read-registration")
test("reg: has necessary parameters", t => {
const propertiesToCheck = ["sender_localpart", "id", "as_token", "namespace_prefix"]
t.deepEqual(
propertiesToCheck.filter(p => p in reg),
propertiesToCheck
)
})