Node.js based forum software built for the modern web
test: fix urls to registration-queue
Barış Soner Uşaklı991a59675fd4
diff --git a/test/user.js b/test/user.jsindex e8e825ee68..6c7ea8c235 100644--- a/test/user.js+++ b/test/user.js@@ -1919,13 +1919,13 @@ describe('User', () => {gdpr_consent: true,});const { jar } = await helpers.loginUser('admin', '123456');- const { body: { users } } = await request.get(`${nconf.get('url')}/api/admin/manage/registration`, { jar });+ const { body: { users } } = await request.get(`${nconf.get('url')}/api/registration-queue`, { jar });assert.equal(users[0].username, 'rejectme');// not escaped in apiassert.equal(users[0].email, '<script>alert("ok")<script>[email protected]');// escaped in html- const { body } = await request.get(`${nconf.get('url')}/admin/manage/registration`, { jar });+ const { body } = await request.get(`${nconf.get('url')}/registration-queue`, { jar });assert(body.includes('<script>alert("ok")<script>[email protected]'));});@@ -2147,7 +2147,7 @@ describe('User', () => {assert.strictEqual(data[0], '<script>alert("ok");</script>');// escaped in html- const { body } = await request.get(`${nconf.get('url')}/admin/manage/registration`, { jar });+ const { body } = await request.get(`${nconf.get('url')}/registration-queue`, { jar });assert(body.includes('<script>alert("ok");</script>'));await User.deleteInvitationKey('<script>alert("ok");</script>');});