aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/test/server.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-11 16:18:03 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-03-11 16:18:03 +0100
commit53eb6da9f490cf449b79965c0e88a797fcae8ae1 (patch)
treecfb435acbea32c3b69fbcf17febc6d8c486ea58c /server/sonar-web/src/test/server.js
parent15d13dc7d2c4bbe0943a6972e5c102277637e855 (diff)
downloadsonarqube-53eb6da9f490cf449b79965c0e88a797fcae8ae1.tar.gz
sonarqube-53eb6da9f490cf449b79965c0e88a797fcae8ae1.zip
move l10n mock to the express
Diffstat (limited to 'server/sonar-web/src/test/server.js')
-rw-r--r--server/sonar-web/src/test/server.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/test/server.js b/server/sonar-web/src/test/server.js
index 09dad0960ac..ebf301d3b57 100644
--- a/server/sonar-web/src/test/server.js
+++ b/server/sonar-web/src/test/server.js
@@ -34,6 +34,13 @@ app.use('/js', express.static(path.join(staticPath, 'js')));
app.use('/css', express.static(path.join(staticPath, 'css')));
+// API
+app.get('/api/l10n/index', function (req, res) {
+ res.setHeader('Content-Type', 'application/json');
+ res.end('{}');
+});
+
+
// Pages
app.get('/pages/:page', function (req, res) {
res.render(req.param('page'));