aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-08-06 09:18:16 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-08-06 09:18:23 +0200
commit876f37e9cfed3b41b4fc7ec8a70f47045676d6c5 (patch)
tree462f590d10c7398f85f34d14cbe2b541fa7c1d67 /server/sonar-web
parentfc63c8f8d386531dea70aacf7d7140c41f9fe9f3 (diff)
downloadsonarqube-876f37e9cfed3b41b4fc7ec8a70f47045676d6c5.tar.gz
sonarqube-876f37e9cfed3b41b4fc7ec8a70f47045676d6c5.zip
Bump frontend medium test dependencies to recent versions
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/package.json4
-rw-r--r--server/sonar-web/src/main/js/tests/e2e/server.js6
2 files changed, 7 insertions, 3 deletions
diff --git a/server/sonar-web/package.json b/server/sonar-web/package.json
index aafaac01a66..9bd6cb730c4 100644
--- a/server/sonar-web/package.json
+++ b/server/sonar-web/package.json
@@ -2,7 +2,9 @@
"name": "SonarQube",
"version": "0.0.1",
"devDependencies": {
- "express": "3.4.4",
+ "express": "4.8.0",
+ "errorhandler": "1.1.1",
+ "serve-static": "1.5.0",
"jade": "1.4.2",
"phantomjs": "1.9.7-12",
"casperjs": "1.1.0-beta3",
diff --git a/server/sonar-web/src/main/js/tests/e2e/server.js b/server/sonar-web/src/main/js/tests/e2e/server.js
index c925d50a526..b2c2036c68d 100644
--- a/server/sonar-web/src/main/js/tests/e2e/server.js
+++ b/server/sonar-web/src/main/js/tests/e2e/server.js
@@ -1,14 +1,16 @@
var express = require('express'),
path = require('path'),
+ errorhandler = require('errorhandler'),
+ serveStatic = require('serve-static'),
app = express();
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
-app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
+app.use(errorhandler({ dumpExceptions: true, showStack: true }));
// Serve static files
-app.use('/', express.static(path.join(__dirname, '../../../webapp')));
+app.use('/', serveStatic(path.join(__dirname, '../../../webapp')));
app.get('/pages/:page', function (req, res) {
res.render(req.param('page'));