Skip to content

Node.js based forum software built for the modern web

fix some tests

Julian Lam2551df80f799
diff --git a/test/authentication.js b/test/authentication.js
index b90d585971..1a4acfdc7f 100644
--- a/test/authentication.js
+++ b/test/authentication.js
@@ -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,
diff --git a/test/user.js b/test/user.js
index 021007c315..533f90843c 100644
--- a/test/user.js
+++ b/test/user.js
@@ -1435,6 +1435,7 @@ describe('User', function () {
'password-confirm': '123456',
email: '<script>alert("ok")<script>[email protected]',
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',
gdpr_consent: true,
+ acceptTos: true,
}, function (err) {
assert.ifError(err);
socketAdmin.user.acceptRegistration({ uid: adminUid }, { username: 'acceptme' }, function (err, uid) {