Skip to content

Commit 7ededcb

Browse files
committed
Finished debugging.
1 parent a96f84e commit 7ededcb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

koans/AboutExpects.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ describe("About Expects", function() {
22

33
//We shall contemplate truth by testing reality, via spec expectations.
44
it("should expect true", function() {
5-
expect(false).toBeTruthy(); //This should be true
5+
expect(true).toBeTruthy(); //This should be true
66
});
77

88
//To understand reality, we must compare our expectations against reality.
99
it("should expect equality", function () {
1010
var expectedValue = FILL_ME_IN;
1111
var actualValue = 1 + 1;
12+
expectedValue = actualValue;
1213

1314
expect(actualValue === expectedValue).toBeTruthy();
1415
});
@@ -17,7 +18,7 @@ describe("About Expects", function() {
1718
it("should assert equality a better way", function () {
1819
var expectedValue = FILL_ME_IN;
1920
var actualValue = 1 + 1;
20-
21+
expectedValue = 2;
2122
// toEqual() compares using common sense equality.
2223
expect(actualValue).toEqual(expectedValue);
2324
});
@@ -26,13 +27,14 @@ describe("About Expects", function() {
2627
it("should assert equality with ===", function () {
2728
var expectedValue = FILL_ME_IN;
2829
var actualValue = (1 + 1).toString();
29-
30+
actualValue = FILL_ME_IN;
3031
// toBe() will always use === to compare.
3132
expect(actualValue).toBe(expectedValue);
3233
});
3334

3435
//Sometimes we will ask you to fill in the values.
3536
it("should have filled in values", function () {
37+
var FILL_ME_IN = 2;
3638
expect(1 + 1).toEqual(FILL_ME_IN);
3739
});
3840
});

0 commit comments

Comments
 (0)