2023-05-09 03:29:46 +00:00
|
|
|
const {test} = require("supertape")
|
|
|
|
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
|
|
|
|
)
|
2023-07-03 12:39:42 +00:00
|
|
|
})
|