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); var args = Array.prototype.slice.call(arguments, 3);
if (!!err) { if (!!err) {
this.emit('error', err); this.emit("error", err);
} else { } else {
this.emit.apply(this, [event].concat(args)); this.emit.apply(this, [event].concat(args));
} }

View File

@ -76,13 +76,14 @@ describe("Basestar", function() {
}); });
context("when err is not null", function() { context("when err is not null", function() {
var errListener, err; var errListener;
beforeEach(function() { beforeEach(function() {
errListener = spy(); errListener = spy();
child = new Child(); child = new Child();
child.on("error", errListener); 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() { it ("emits an error event", function() {