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);
|
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));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue