alternativeEmail -> alternateEmail
This commit is contained in:
@@ -199,7 +199,7 @@ describe('User', function () {
|
||||
expect(result).to.be.ok();
|
||||
expect(result.username).to.equal(USERNAME.toLowerCase());
|
||||
expect(result.email).to.equal(EMAIL.toLowerCase());
|
||||
expect(result.alternativeEmail).not.to.be.ok();
|
||||
expect(result.alternateEmail).not.to.be.ok();
|
||||
|
||||
// first user is owner, do not send mail to admins
|
||||
checkMails(0, done);
|
||||
@@ -257,7 +257,7 @@ describe('User', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('succeeds and attempts to send invite to alternativeEmail', function (done) {
|
||||
it('succeeds and attempts to send invite to alternateEmail', function (done) {
|
||||
// user settingsdb instead of settings, to not trigger further events
|
||||
settingsdb.set(settings.MAIL_CONFIG_KEY, JSON.stringify({ enabled: true }), function (error) {
|
||||
expect(error).not.to.be.ok();
|
||||
@@ -267,7 +267,7 @@ describe('User', function () {
|
||||
expect(result).to.be.ok();
|
||||
expect(result.username).to.equal(USERNAME_1.toLowerCase());
|
||||
expect(result.email).to.equal(USERNAME_1.toLowerCase() + '@' + config.fqdn());
|
||||
expect(result.alternativeEmail).to.equal(EMAIL_1.toLowerCase());
|
||||
expect(result.alternateEmail).to.equal(EMAIL_1.toLowerCase());
|
||||
|
||||
// first user is owner, do not send mail to admins
|
||||
checkMails(2, { sentTo: EMAIL_1.toLowerCase() }, function (error) {
|
||||
@@ -625,7 +625,7 @@ describe('User', function () {
|
||||
expect(result).to.be.ok();
|
||||
expect(result.id).to.equal(userObject.id);
|
||||
expect(result.email).to.equal(EMAIL.toLowerCase());
|
||||
expect(result.alternativeEmail).not.to.be.ok();
|
||||
expect(result.alternateEmail).not.to.be.ok();
|
||||
expect(result.username).to.equal(USERNAME.toLowerCase());
|
||||
expect(result.displayName).to.equal(DISPLAY_NAME);
|
||||
|
||||
@@ -643,7 +643,7 @@ describe('User', function () {
|
||||
expect(result).to.be.ok();
|
||||
expect(result.id).to.equal(userObject.id);
|
||||
expect(result.email).to.equal(USERNAME.toLowerCase() + '@' + config.fqdn());
|
||||
expect(result.alternativeEmail).to.equal(EMAIL.toLowerCase());
|
||||
expect(result.alternateEmail).to.equal(EMAIL.toLowerCase());
|
||||
expect(result.username).to.equal(USERNAME.toLowerCase());
|
||||
expect(result.displayName).to.equal(DISPLAY_NAME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user