Skip to content

Commit 294f306

Browse files
completed Subject 1: Expects
1 parent 1593981 commit 294f306

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

koans/AboutExpects.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ describe('About Expects', function() {
44
it('should expect true', function() {
55

66
// Your journey begins here: Replace the word false with true
7-
expect(false).toBeTruthy();
7+
expect(true).toBeTruthy();
88
});
99

1010
// To understand reality, we must compare our expectations against reality.
1111
it('should expect equality', function() {
12-
var expectedValue = FILL_ME_IN;
12+
var expectedValue = 2;
1313
var actualValue = 1 + 1;
1414

1515
expect(actualValue === expectedValue).toBeTruthy();
1616
});
1717

1818
// Some ways of asserting equality are better than others.
1919
it('should assert equality a better way', function() {
20-
var expectedValue = FILL_ME_IN;
20+
var expectedValue = 2;
2121
var actualValue = 1 + 1;
2222

2323
// toEqual() compares using common sense equality.
@@ -26,7 +26,7 @@ describe('About Expects', function() {
2626

2727
// Sometimes you need to be precise about what you "type."
2828
it('should assert equality with ===', function() {
29-
var expectedValue = FILL_ME_IN;
29+
var expectedValue = '2';
3030
var actualValue = (1 + 1).toString();
3131

3232
// toBe() will always use === to compare.
@@ -35,6 +35,6 @@ describe('About Expects', function() {
3535

3636
// Sometimes we will ask you to fill in the values.
3737
it('should have filled in values', function() {
38-
expect(1 + 1).toEqual(FILL_ME_IN);
38+
expect(1 + 1).toEqual(2);
3939
});
4040
});

0 commit comments

Comments
 (0)