From fc3f6a66ae9410a343b1c193df35fe5fc9817250 Mon Sep 17 00:00:00 2001 From: Chris Sita Date: Mon, 6 May 2013 15:38:58 -0700 Subject: [PATCH 1/2] Completed AboutExpects.js Koans --- koans/AboutExpects.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koans/AboutExpects.js b/koans/AboutExpects.js index 52148b243..5715798a9 100644 --- a/koans/AboutExpects.js +++ b/koans/AboutExpects.js @@ -2,12 +2,12 @@ describe("About Expects", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should expect true", function() { - expect(false).toBeTruthy(); //This should be true + expect(true).toBeTruthy(); //This should be true }); //To understand reality, we must compare our expectations against reality. it("should expect equality", function () { - var expectedValue = FILL_ME_IN; + var expectedValue = 2; var actualValue = 1 + 1; expect(actualValue === expectedValue).toBeTruthy(); @@ -15,7 +15,7 @@ describe("About Expects", function() { //Some ways of asserting equality are better than others. it("should assert equality a better way", function () { - var expectedValue = FILL_ME_IN; + var expectedValue = 2; var actualValue = 1 + 1; // toEqual() compares using common sense equality. @@ -24,7 +24,7 @@ describe("About Expects", function() { //Sometimes you need to be really exact about what you "type". it("should assert equality with ===", function () { - var expectedValue = FILL_ME_IN; + var expectedValue = '2'; var actualValue = (1 + 1).toString(); // toBe() will always use === to compare. @@ -33,6 +33,6 @@ describe("About Expects", function() { //Sometimes we will ask you to fill in the values. it("should have filled in values", function () { - expect(1 + 1).toEqual(FILL_ME_IN); + expect(1 + 1).toEqual(2); }); }); From b06c9b1a9785c03e6c383d2746db81c0a9c33d45 Mon Sep 17 00:00:00 2001 From: Chris Sita Date: Wed, 8 May 2013 11:43:12 -0700 Subject: [PATCH 2/2] Completed AboutArrays.js, AboutFunctions.js, and AboutObjects.js --- KoansRunner.html | 1 + koans/AboutArrays.js | 60 ++++++++++++++++++++--------------------- koans/AboutFunctions.js | 33 +++++++++++++---------- koans/AboutObjects.js | 32 +++++++++++----------- 4 files changed, 66 insertions(+), 60 deletions(-) diff --git a/KoansRunner.html b/KoansRunner.html index f885690dd..57c4bb48c 100644 --- a/KoansRunner.html +++ b/KoansRunner.html @@ -23,6 +23,7 @@ +