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
|
|
|
|
)
|
2023-07-03 12:39:42 +00:00
|
|
|
})
|