Offering to the lint godsgit add .!

This commit is contained in:
Edgar Silva 2015-03-27 15:36:24 -06:00
parent ec4dde7448
commit 287b4205dd
3 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@ -44,7 +44,7 @@ Basestar.prototype.respond = function(event, callback, err) {
var args = Array.prototype.slice.call(arguments, 3);
if (!!err) {
this.emit('error', err);
this.emit("error", err);
} else {
this.emit.apply(this, [event].concat(args));
}

View File

@ -76,13 +76,14 @@ describe("Basestar", function() {
});
context("when err is not null", function() {
var errListener, err;
var errListener;
beforeEach(function() {
errListener = spy();
child = new Child();
child.on("error", errListener);
child.respond("event", callback, "Error on event!", "arg1", 2, { three: true });
child.respond("event", callback,
"Error on event!", "arg1", 2, { three: true });
});
it ("emits an error event", function() {