Fixup specs
This commit is contained in:
parent
8e0790ad9f
commit
81dfda5732
|
@ -236,7 +236,7 @@ Robot.prototype.initDevices = function(devices) {
|
|||
// Returns the result of the work
|
||||
Robot.prototype.start = function() {
|
||||
if (this.running) {
|
||||
return;
|
||||
return this;
|
||||
}
|
||||
|
||||
var begin = function(callback) {
|
||||
|
|
|
@ -6,17 +6,21 @@ var Device = source('device'),
|
|||
Utils = source('utils');
|
||||
|
||||
describe("Robot", function() {
|
||||
var work = spy();
|
||||
var extraFunction = spy();
|
||||
var work, extraFunction, robot;
|
||||
|
||||
var robot = new Robot({
|
||||
name: "Robby",
|
||||
work: work,
|
||||
beforeEach(function() {
|
||||
work = spy();
|
||||
extraFunction = spy();
|
||||
|
||||
extraFunction: extraFunction,
|
||||
extraValue: "Hello World",
|
||||
robot = new Robot({
|
||||
name: "Robby",
|
||||
work: work,
|
||||
|
||||
master: { master: true }
|
||||
extraFunction: extraFunction,
|
||||
extraValue: "Hello World",
|
||||
|
||||
master: { master: true }
|
||||
});
|
||||
});
|
||||
|
||||
describe("constructor", function() {
|
||||
|
|
Loading…
Reference in New Issue