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

11 lines
284 B
JavaScript
Raw Normal View History

2023-05-09 03:29:46 +00:00
const {test} = require("supertape")
2024-09-05 03:36:43 +00:00
const {reg} = require("./read-registration")
2023-05-09 03:29:46 +00:00
test("reg: has necessary parameters", t => {
2023-08-21 09:04:41 +00:00
const propertiesToCheck = ["sender_localpart", "id", "as_token", "ooye"]
t.deepEqual(
propertiesToCheck.filter(p => p in reg),
propertiesToCheck
)
})