Skip to content

Node.js based forum software built for the modern web

test: update about me test

Barış Soner Uşaklı0d536e01328b
diff --git a/test/controllers.js b/test/controllers.js
index 263c88883e..4108f8a3d7 100644
--- a/test/controllers.js
+++ b/test/controllers.js
@@ -1301,7 +1301,7 @@ describe('Controllers', () => {
await user.setUserFields(fooUid, { picture: '/assets/uploads/path/to/picture', aboutme: 'hi i am a bot [[topic:moved-from]] <script>alert("xss")</script>' });
const { response, body } = await request.get(`${nconf.get('url')}/api/user/foo`);
assert.equal(response.statusCode, 200);
- assert.equal(body.aboutmeParsed, 'hi i am a bot &lsqb;&lsqb;topic:moved-from&rsqb;&rsqb; &lt;script&gt;alert("xss")&lt;/script&gt;');
+ assert.equal(body.aboutmeParsed, 'hi i am a bot &lsqb;&lsqb;topic:moved-from&rsqb;&rsqb; ');
assert.equal(body.picture, '&#x2F;assets&#x2F;uploads&#x2F;path&#x2F;to&#x2F;picture');
});