From cdd3f3310ad7ee52a37bdaacd85e3faf02e275b3 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 27 Feb 2014 17:39:02 -0800 Subject: [PATCH] Remove trailing whitespace --- lib/device.js | 2 +- lib/robot.js | 2 +- test/specs/basestar.spec.js | 4 ++-- test/specs/cylon.spec.js | 16 ++++++++-------- test/specs/device.spec.js | 12 ++++++------ test/specs/digital-pin.spec.js | 2 +- test/specs/driver.spec.js | 2 +- test/specs/port.spec.js | 6 +++--- test/specs/robot.spec.js | 2 +- test/specs/utils.spec.js | 2 +- 10 files changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/device.js b/lib/device.js index 1e02f13..8e50228 100644 --- a/lib/device.js +++ b/lib/device.js @@ -13,7 +13,7 @@ require('./driver'); var namespace = require('node-namespace'); var EventEmitter = require('events').EventEmitter; var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; } - + // The Artoo::Device class represents the interface to // a specific individual hardware devices. Examples would be a digital // thermometer connected to an Arduino, or a Sphero's accelerometer diff --git a/lib/robot.js b/lib/robot.js index 89e0e62..1da9e90 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -330,7 +330,7 @@ namespace("Cylon", function() { } else { return realDriver; } - }; + }; // Public: Requires module for a driver and adds it to @robot.drivers // diff --git a/test/specs/basestar.spec.js b/test/specs/basestar.spec.js index 7ac9b67..f6b79e5 100644 --- a/test/specs/basestar.spec.js +++ b/test/specs/basestar.spec.js @@ -14,7 +14,7 @@ describe('Basestar', function() { describe('#proxyMethods', function() { var ProxyClass, TestClass, methods; methods = ['asString', 'toString', 'returnString']; - + ProxyClass = (function() { function ProxyClass() {} @@ -33,7 +33,7 @@ describe('Basestar', function() { return ProxyClass; })(); - + TestClass = (function(_super) { subclass(TestClass, _super); diff --git a/test/specs/cylon.spec.js b/test/specs/cylon.spec.js index 5e19d92..8f47a66 100644 --- a/test/specs/cylon.spec.js +++ b/test/specs/cylon.spec.js @@ -65,7 +65,7 @@ describe("Cylon", function() { robot.name.should.be.equal("caprica six"); }); }); - + describe("with an invalid robot name", function() { it("returns null", function() { var robot; @@ -74,7 +74,7 @@ describe("Cylon", function() { }); }); }); - + describe("async", function() { describe("with a valid robot name", function() { it("passes the robot and an empty error to the callback", function() { @@ -85,7 +85,7 @@ describe("Cylon", function() { }); }); }); - + describe("with an invalid robot name", function() { it("passes no robot and an error message to the callback", function() { return Cylon.findRobot("Tom Servo", function(error, robot) { @@ -126,7 +126,7 @@ describe("Cylon", function() { }); }); }); - + describe("async", function() { describe("with a valid robot and device name", function() { it("passes the device and an empty error to the callback", function() { @@ -149,7 +149,7 @@ describe("Cylon", function() { }); }); }); - + describe("#findRobotConnection", function() { var ultron; ultron = Cylon.robot({ @@ -159,7 +159,7 @@ describe("Cylon", function() { adaptor: 'loopback' } }); - + describe("synchronous", function() { describe("with a valid robot and connection name", function() { it("returns the connection", function() { @@ -178,7 +178,7 @@ describe("Cylon", function() { }); }); }); - + describe("async", function() { describe("with a valid robot and connection name", function() { it("passes the connection and an empty error to the callback", function() { @@ -189,7 +189,7 @@ describe("Cylon", function() { }); }); }); - + describe("with an invalid connection name", function() { it("passes no connection and an error message to the callback", function() { return Cylon.findRobotConnection("Ultron", "madethisup", function(err, conn) { diff --git a/test/specs/device.spec.js b/test/specs/device.spec.js index efe70b4..b50d4dd 100644 --- a/test/specs/device.spec.js +++ b/test/specs/device.spec.js @@ -19,7 +19,7 @@ describe("Device", function() { }); initDriver = sinon.stub(robot, 'initDriver').returns(driver); - + device = new Cylon.Device({ name: "devisive", driver: 'driving', @@ -29,29 +29,29 @@ describe("Device", function() { it("belongs to a robot", function() { device.robot.name.should.be.equal('me'); }); - + it("has a name", function() { device.name.should.be.equal('devisive'); }); - + it("can init a driver", function() { initDriver.should.be.called; }); - + it("can start a driver", function() { var driverStart; driverStart = sinon.stub(driver, 'start').returns(true); device.start(); driverStart.should.be.called; }); - + it("can stop a driver", function() { var driverStop; driverStop = sinon.stub(driver, 'stop').returns(true); device.stop(); driverStop.should.be.called; }); - + it("should use default connection if none specified"); it("should use connection if one is specified"); }); diff --git a/test/specs/digital-pin.spec.js b/test/specs/digital-pin.spec.js index 72a126e..6bef8a4 100644 --- a/test/specs/digital-pin.spec.js +++ b/test/specs/digital-pin.spec.js @@ -201,7 +201,7 @@ describe("DigitalPin", function() { return pin.digitalWrite.restore(); }); }); - + describe("#toggle", function() { context("when the pin is 'high'", function() { it("sets the pin to 'low'", function() { diff --git a/test/specs/driver.spec.js b/test/specs/driver.spec.js index 7bdead2..9ccf5cf 100644 --- a/test/specs/driver.spec.js +++ b/test/specs/driver.spec.js @@ -43,7 +43,7 @@ describe("Driver", function() { it("saves the provided name in the @name variable", function() { expect(driver.name).to.be.eql("TestDriver"); }); - + it("saves the provided device in the @device variable", function() { expect(driver.device).to.be.eql(device); }); diff --git a/test/specs/port.spec.js b/test/specs/port.spec.js index 8a867be..bdbd4af 100644 --- a/test/specs/port.spec.js +++ b/test/specs/port.spec.js @@ -30,7 +30,7 @@ describe("Port", function() { describe("local TCP port", function() { var port; port = new Cylon.Port("5678"); - + it("#port", function() { port.port.should.be.equal("5678"); }); @@ -55,7 +55,7 @@ describe("Port", function() { describe("serial port", function() { var port; port = new Cylon.Port("/dev/tty.usb12345"); - + it("#port", function() { port.port.should.be.equal("/dev/tty.usb12345"); }); @@ -80,7 +80,7 @@ describe("Port", function() { describe("portless", function() { var port; port = new Cylon.Port; - + it("#port", function() { assert(port.port === void 0); }); diff --git a/test/specs/robot.spec.js b/test/specs/robot.spec.js index 0a85cb2..61d3a5f 100644 --- a/test/specs/robot.spec.js +++ b/test/specs/robot.spec.js @@ -10,7 +10,7 @@ describe("Robot", function() { testWork = function() { return Logger.info("hi"); }; - + whateverFunc = function() { return Logger.info("whatever!"); }; diff --git a/test/specs/utils.spec.js b/test/specs/utils.spec.js index 04ef72e..87f17fb 100644 --- a/test/specs/utils.spec.js +++ b/test/specs/utils.spec.js @@ -31,7 +31,7 @@ describe("Utils", function() { describe("#proxyFunctionsToObject", function() { var ProxyClass, TestClass, methods; methods = ['asString', 'toString', 'returnString']; - + ProxyClass = (function() { function ProxyClass() {}