Permalink
Browse files

Readd watchFile functionallity to web runner

  • Loading branch information...
1 parent 97781b3 commit c8c63e5a6687ee66995b5ed66b8b08653d51f249 Benjamin Thomas committed Oct 28, 2010
Showing with 2 additions and 11 deletions.
  1. +2 −11 lib/web-runner.js
View
@@ -40,14 +40,8 @@ exports.run = function(list, options) {
options.parallel = options.parallel || false;
- try {
- // TODO: this seems a strange way to do this, fix it
- options.port = parseInt(options.port);
- if (isNaN(options.port)) {
- throw '';
- }
- }
- catch(err) {
+ options.port = parseInt(options.port);
+ if (isNaN(options.port)) {
options.port = 8765;
}
@@ -150,9 +144,6 @@ exports.run = function(list, options) {
}
function watchFile(suite) {
- // TODO don't do this
- return;
-
fs.watchFile(suite.name, {interval: 500}, watchFunction)
function watchFunction(o, n) {

0 comments on commit c8c63e5

Please sign in to comment.