diff --git a/support/test-runner/app.js b/support/test-runner/app.js index 167430ae..e7593a22 100644 --- a/support/test-runner/app.js +++ b/support/test-runner/app.js @@ -41,6 +41,7 @@ var testsPorts = {}; app.configure(function () { app.use(stylus.middleware({ src: __dirname + '/public' })) app.use(express.static(__dirname + '/public')); + app.use('/test', express.static(__dirname + '/../../test')); app.set('views', __dirname); app.set('view engine', 'jade'); }); @@ -56,14 +57,6 @@ app.get('/', function (req, res) { }); }); -/** - * Sends test files. - */ - -app.get('/test/:file', function (req, res) { - res.sendfile(path.normalize(__dirname + '/../../test/' + req.params.file)); -}); - /** * App listen. */