From aca4ebce70a5c35dc11efcf6527df2d0eb90ca8b Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sun, 27 Mar 2016 18:38:07 -0700 Subject: [PATCH] Use dot notation for tests Signed-off-by: deadprogram --- spec/lib/robot.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/robot.spec.js b/spec/lib/robot.spec.js index 4a16980..9fa5fd9 100644 --- a/spec/lib/robot.spec.js +++ b/spec/lib/robot.spec.js @@ -419,8 +419,8 @@ describe("Robot", function() { it("defines a named connection on robot for each connection", function() { bot.startConnections(); - expect(bot["alpha"]).to.be.an.instanceOf(Adaptor); - expect(bot["bravo"]).to.be.an.instanceOf(Adaptor); + expect(bot.alpha).to.be.an.instanceOf(Adaptor); + expect(bot.bravo).to.be.an.instanceOf(Adaptor); }); }); @@ -472,8 +472,8 @@ describe("Robot", function() { it("defines a named device on robot for each device", function() { bot.startDevices(); - expect(bot["alpha"]).to.be.an.instanceOf(Driver); - expect(bot["bravo"]).to.be.an.instanceOf(Driver); + expect(bot.alpha).to.be.an.instanceOf(Driver); + expect(bot.bravo).to.be.an.instanceOf(Driver); }); });