out-of-your-element/matrix/read-registration.test.js

11 lines
340 B
JavaScript
Raw Normal View History

2023-05-09 03:29:46 +00:00
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
)
})