From 4a6d367f9678f9dd069e6615a87cd4e0f8d17119 Mon Sep 17 00:00:00 2001 From: Jussi Kalliokoski Date: Mon, 8 Dec 2014 09:12:45 +0200 Subject: [PATCH] Replaced true/false assertions with equal(true|false), per review. --- test/CarouselSpec.js | 12 ++++++------ test/ContainerSpec.js | 8 ++++---- test/FaderSpec.js | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/CarouselSpec.js b/test/CarouselSpec.js index a2047f0..d255b78 100644 --- a/test/CarouselSpec.js +++ b/test/CarouselSpec.js @@ -411,7 +411,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -426,7 +426,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -440,7 +440,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -454,7 +454,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -468,7 +468,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -490,7 +490,7 @@ describe("Carousel", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); }); diff --git a/test/ContainerSpec.js b/test/ContainerSpec.js index 44d0ba3..21598ce 100644 --- a/test/ContainerSpec.js +++ b/test/ContainerSpec.js @@ -281,7 +281,7 @@ describe("Container", function () { }); it("should be started", function () { - expect(container.startAutoRotate.called).to.be.ok(); + expect(container.startAutoRotate.called).to.equal(true); }); }); @@ -292,7 +292,7 @@ describe("Container", function () { }); it("should be stopped", function () { - expect(container.stopAutoRotate.called).to.be.ok(); + expect(container.stopAutoRotate.called).to.equal(true); }); }); @@ -303,7 +303,7 @@ describe("Container", function () { }); it("should be started", function () { - expect(container.startAutoRotate.called).to.be.ok(); + expect(container.startAutoRotate.called).to.equal(true); }); }); @@ -314,7 +314,7 @@ describe("Container", function () { }); it("should be stopped", function () { - expect(container.stopAutoRotate.called).to.be.ok(); + expect(container.stopAutoRotate.called).to.equal(true); }); }); diff --git a/test/FaderSpec.js b/test/FaderSpec.js index c0018d3..a0bad5e 100644 --- a/test/FaderSpec.js +++ b/test/FaderSpec.js @@ -319,7 +319,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -334,7 +334,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -348,7 +348,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -362,7 +362,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -376,7 +376,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); @@ -398,7 +398,7 @@ describe("Fader", function () { }); it("should not do anything", function () { - expect(onSwiped.called).to.not.be.ok(); + expect(onSwiped.called).to.equal(false); }); }); });