fix some tests

This commit is contained in:
Julian Lam
2018-05-02 13:37:58 -04:00
parent 5d198491d5
commit 2551df80f7
2 changed files with 4 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ describe('authentication', function () {
password: password,
'password-confirm': password,
gdpr_consent: true,
acceptTos: true,
},
json: true,
jar: jar,
@@ -152,6 +153,7 @@ describe('authentication', function () {
'password-confirm': 'adminpwd',
userLang: 'it',
gdpr_consent: true,
acceptTos: true,
},
json: true,
jar: jar,

View File

@@ -1435,6 +1435,7 @@ describe('User', function () {
'password-confirm': '123456',
email: '<script>alert("ok")<script>reject@me.com',
gdpr_consent: true,
acceptTos: true,
}, function (err) {
assert.ifError(err);
helpers.loginUser('admin', '123456', function (err, jar) {
@@ -1467,6 +1468,7 @@ describe('User', function () {
'password-confirm': '123456',
email: 'accept@me.com',
gdpr_consent: true,
acceptTos: true,
}, function (err) {
assert.ifError(err);
socketAdmin.user.acceptRegistration({ uid: adminUid }, { username: 'acceptme' }, function (err, uid) {