1
1
describe ( "About Expects" , function ( ) {
2
2
3
- //We shall contemplate truth by testing reality, via spec expectations.
3
+ // We shall contemplate truth by testing reality, via spec expectations.
4
4
it ( "should expect true" , function ( ) {
5
5
expect ( false ) . toBeTruthy ( ) ; //This should be true
6
6
} ) ;
7
7
8
- //To understand reality, we must compare our expectations against reality.
8
+ // To understand reality, we must compare our expectations against reality.
9
9
it ( "should expect equality" , function ( ) {
10
10
var expectedValue = FILL_ME_IN ;
11
11
var actualValue = 1 + 1 ;
12
12
13
13
expect ( actualValue === expectedValue ) . toBeTruthy ( ) ;
14
14
} ) ;
15
15
16
- //Some ways of asserting equality are better than others.
16
+ // Some ways of asserting equality are better than others.
17
17
it ( "should assert equality a better way" , function ( ) {
18
18
var expectedValue = FILL_ME_IN ;
19
19
var actualValue = 1 + 1 ;
@@ -22,7 +22,7 @@ describe("About Expects", function() {
22
22
expect ( actualValue ) . toEqual ( expectedValue ) ;
23
23
} ) ;
24
24
25
- //Sometimes you need to be really exact about what you "type".
25
+ // Sometimes you need to be really exact about what you "type.""
26
26
it ( "should assert equality with ===" , function ( ) {
27
27
var expectedValue = FILL_ME_IN ;
28
28
var actualValue = ( 1 + 1 ) . toString ( ) ;
@@ -31,7 +31,7 @@ describe("About Expects", function() {
31
31
expect ( actualValue ) . toBe ( expectedValue ) ;
32
32
} ) ;
33
33
34
- //Sometimes we will ask you to fill in the values.
34
+ // Sometimes we will ask you to fill in the values.
35
35
it ( "should have filled in values" , function ( ) {
36
36
expect ( 1 + 1 ) . toEqual ( FILL_ME_IN ) ;
37
37
} ) ;
0 commit comments