Offering to the lint godsgit add .!
This commit is contained in:
parent
ec4dde7448
commit
287b4205dd
Binary file not shown.
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue