Fix wrong assert and minor typos
This commit is contained in:
@@ -764,9 +764,8 @@ async function sendInviteEmail(user, email, auditSource) {
|
||||
assert.strictEqual(typeof user, 'object');
|
||||
assert.strictEqual(typeof email, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
const resetLink = await getInviteLink(user, auditSource);
|
||||
await mailer.sendInvite(user, null /* invitor */, email, resetLink);
|
||||
const inviteLink = await getInviteLink(user, auditSource);
|
||||
await mailer.sendInvite(user, null /* invitor */, email, inviteLink);
|
||||
}
|
||||
|
||||
async function setupAccount(user, data, auditSource) {
|
||||
|
||||
Reference in New Issue
Block a user