@@ -17,19 +17,33 @@ describe('Your HTML Page', function() {
17
17
) ;
18
18
} ) ;
19
19
20
- it ( 'should have a different title' , function ( ) {
21
- assert . notEqual ( window . $ ( 'title' ) . text ( ) , 'Hello Code School ') ;
20
+ it ( 'should have a title @ title' , function ( ) {
21
+ assert . equal ( window . $ ( 'title' ) . length , 1 , 'Make sure to create a `title` element. ') ;
22
22
} ) ;
23
23
24
- it ( 'should have a different h1 ' , function ( ) {
25
- assert . notEqual ( window . $ ( 'h1 ' ) . length , 0 ) ;
24
+ it ( 'should have a title with the text "Code School" @title ' , function ( ) {
25
+ assert . notEqual ( window . $ ( 'title ' ) . text ( ) , '' , 'Make sure to set the content of the `title` element to your Code School username.' ) ;
26
26
} ) ;
27
27
28
- it ( 'should have a ul ' , function ( ) {
29
- assert . notEqual ( window . $ ( 'ul ' ) . length , 0 ) ;
28
+ it ( 'should have a h1 element @h1 ' , function ( ) {
29
+ assert . isAtLeast ( window . $ ( 'h1 ' ) . length , 1 , "Make sure to create an `h1` element." ) ;
30
30
} ) ;
31
31
32
- it ( 'should have at least 2 li elements' , function ( ) {
33
- assert . isAtLeast ( window . $ ( 'li' ) . length , 2 ) ;
32
+ it ( 'should have content in the h1 element @h1' , function ( ) {
33
+ assert . equal ( window . $ ( 'h1' ) . text ( ) , 'Hello, Code School!' , "Make sure to set the content of your `h1` element to 'Hello, Code School!'." ) ;
34
+ } ) ;
35
+
36
+ it ( 'should have a ul @ul' , function ( ) {
37
+ assert . isAtLeast ( window . $ ( 'ul' ) . length , 1 , "Make sure to create a `ul` element." ) ;
38
+ } ) ;
39
+
40
+ it ( 'should have at least 2 li elements @li' , function ( ) {
41
+ assert . isAtLeast ( window . $ ( 'li' ) . length , 2 , "Make sure to create at least 2 `li` elements." ) ;
42
+ } ) ;
43
+
44
+ it ( 'should have content for all `li` elements. @li' , function ( ) {
45
+ var message = "Make sure to include something you want to learn for each `li` element."
46
+ assert . notEqual ( window . $ ( 'li:first' ) . text ( ) , '' , message ) ;
47
+ assert . notEqual ( window . $ ( 'li:last' ) . text ( ) , '' , message ) ;
34
48
} ) ;
35
49
} ) ;
0 commit comments