OLD | NEW |
1 var fs = require('fs'); | 1 var fs = require('fs'); |
2 | 2 |
3 var test = require('../') | 3 var test = require('../') |
4 , runTests = test.runTests | 4 , runTests = test.runTests |
5 , load = test.load; | 5 , load = test.load; |
6 | 6 |
7 var express = require('express') | 7 var express = require('express') |
8 , app = express(); | 8 , app = express(); |
9 | 9 |
10 app.use(function(req, res, next) { | 10 app.use(function(req, res, next) { |
(...skipping 21 matching lines...) Expand all Loading... |
32 test = test.replace('__MAIN__', runTests + ''); | 32 test = test.replace('__MAIN__', runTests + ''); |
33 | 33 |
34 res.contentType('.js'); | 34 res.contentType('.js'); |
35 res.send(test); | 35 res.send(test); |
36 }); | 36 }); |
37 | 37 |
38 app.use(express.static(__dirname + '/../../lib')); | 38 app.use(express.static(__dirname + '/../../lib')); |
39 app.use(express.static(__dirname)); | 39 app.use(express.static(__dirname)); |
40 | 40 |
41 app.listen(8080); | 41 app.listen(8080); |
OLD | NEW |