Node.js based forum software built for the modern web
test: update test for homePageRoute
Barış Soner Uşaklı657c3eaef725
diff --git a/test/user.js b/test/user.jsindex ea77a40ee7..5512fde32f 100644--- a/test/user.js+++ b/test/user.js@@ -1765,6 +1765,12 @@ describe('User', () => {await apiUser.updateSettings({ uid: testUid }, data);const userSettings = await User.getSettings(testUid);assert.strictEqual(userSettings.homePageRoute, 'category/6/testing-ground');+++ data.settings.homePageRoute = '<script>alert(1);</script>';+ await apiUser.updateSettings({ uid: testUid }, data);+ const updatedSettings = await User.getSettings(testUid);+ assert.strictEqual(updatedSettings.homePageRoute, '<script>alert(1);</script>');});