Changeset View
Changeset View
Standalone View
Standalone View
lib/app/base-chips/collections/registration-intents.subtest.js
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | with_stopped_app( | ||||
}); | }); | ||||
const intent = (await axios.post( | const intent = (await axios.post( | ||||
`${base_url}/api/v1/collections/registration-intents`, | `${base_url}/api/v1/collections/registration-intents`, | ||||
{ | { | ||||
email: "genuine@fox.com", | email: "genuine@fox.com", | ||||
role: "admin", | role: "admin", | ||||
} | } | ||||
)).data; | )).data; | ||||
assert.equal(intent.body.role, "admin"); | assert.equal(intent.role, "admin"); | ||||
const response = await app.run_action( | const response = await app.run_action( | ||||
new app.Sealious.SuperContext(), | new app.Sealious.SuperContext(), | ||||
["collections", "registration-intents", intent.id], | ["collections", "registration-intents", intent.id], | ||||
"show" | "show" | ||||
); | ); | ||||
assert.equal(response.body.role, "admin"); | assert.equal(response.role, "admin"); | ||||
} | } | ||||
)); | )); | ||||
}); | }); |