LearnBoost / tobi

Tobi: Expressive server-side functional testing with jQuery
409 stars 33 forks source link

Err: The "sys" module is now called "util" #84

Open richzw opened 12 years ago

richzw commented 12 years ago

When I make test, I get the following information and tobi hang here.

The "sys" module is now called "util". It should have a similar interface.
richzw commented 12 years ago

BTW, I am confused with the code in /lib/browser.js

Browser.prototype.request = function(method, path, options, fn, saveHistory){
var self = this
, server = this.server
, host = this.host || '127.0.0.1'
, headers = options.headers || {};

  // Ensure that server is ready to take connections
  if (server && !server.fd){
   (server.__deferred = server.__deferred || [])
  .push(arguments);
if (!server.__started) {
  server.listen(server.__port = ++startingPort, host, function(){
    process.nextTick(function(){
      server.__deferred.forEach(function(args){
        self.request.apply(self, args);
      });
    });
  });
  server.__started = true;
}
return;            // I am confused with this return in any case?? why?
}