Switch to Logger.debug for default work, add test for #start return val
This commit is contained in:
parent
f0d0e4b738
commit
3ec6c2717a
|
@ -79,7 +79,7 @@ var Robot = module.exports = function Robot(opts) {
|
|||
this.work = opts.work || opts.play;
|
||||
|
||||
if (!this.work) {
|
||||
this.work = function() { console.log("No work yet."); }
|
||||
this.work = function() { Logger.debug("No work yet."); }
|
||||
}
|
||||
|
||||
this.registerDefaults();
|
||||
|
|
|
@ -319,6 +319,10 @@ describe("Robot", function() {
|
|||
it("emits the 'work' event", function() {
|
||||
expect(robot.emit).to.be.calledWith("work")
|
||||
});
|
||||
|
||||
it("returns the robot", function() {
|
||||
expect(robot.start()).to.be.eql(robot);
|
||||
});
|
||||
});
|
||||
|
||||
describe("#startConnections", function() {
|
||||
|
|
Loading…
Reference in New Issue