@@ -24,15 +24,15 @@ describe("$ w3c-validator invalid", function() {
24
24
} ) ;
25
25
} ) ;
26
26
27
- describe ( "$ w3c-validator -n www.whatsmyip.org " , function ( ) {
27
+ describe ( "$ w3c-validator abc.xyz " , function ( ) {
28
28
this . timeout ( 300000 ) ;
29
29
30
30
var _error ;
31
31
var _stdout ;
32
32
var _stderr ;
33
33
34
34
before ( function ( done ) {
35
- var cmd = exec ( "node w3c-validator.js -n http://www.whatsmyip.org " , function ( error , stdout , stderr ) {
35
+ var cmd = exec ( "node w3c-validator.js abc.xyz " , function ( error , stdout , stderr ) {
36
36
_error = error ;
37
37
_stdout = stdout ;
38
38
_stderr = stderr ;
@@ -49,44 +49,23 @@ describe("$ w3c-validator -n www.whatsmyip.org", function() {
49
49
} ) ;
50
50
} ) ;
51
51
52
- describe ( "$ w3c-validator -n http ://www.whatsmyip.org " , function ( ) {
52
+ describe ( "$ w3c-validator https ://abc.xyz " , function ( ) {
53
53
this . timeout ( 300000 ) ;
54
54
55
55
var _error ;
56
56
var _stdout ;
57
57
var _stderr ;
58
58
59
59
before ( function ( done ) {
60
- var cmd = exec ( "node w3c-validator.js -n http ://www.whatsmyip.org " , function ( error , stdout , stderr ) {
60
+ var cmd = exec ( "node w3c-validator.js https ://abc.xyz " , function ( error , stdout , stderr ) {
61
61
_error = error ;
62
62
_stdout = stdout ;
63
63
_stderr = stderr ;
64
64
done ( ) ;
65
65
} ) ;
66
66
} ) ;
67
67
68
- it ( "should remove protocol and not throw any errors" , function ( ) {
69
- should . equal ( _error , null ) ;
70
- } ) ;
71
- } ) ;
72
-
73
- describe ( "$ w3c-validator -n http://www.whatsmyip.org/contact/" , function ( ) {
74
- this . timeout ( 300000 ) ;
75
-
76
- var _error ;
77
- var _stdout ;
78
- var _stderr ;
79
-
80
- before ( function ( done ) {
81
- var cmd = exec ( "node w3c-validator.js -n http://www.whatsmyip.org/contact/" , function ( error , stdout , stderr ) {
82
- _error = error ;
83
- _stdout = stdout ;
84
- _stderr = stderr ;
85
- done ( ) ;
86
- } ) ;
87
- } ) ;
88
-
89
- it ( "should work with subsite as starting point" , function ( ) {
68
+ it ( "should work with protocol and not throw any errors" , function ( ) {
90
69
should . equal ( _error , null ) ;
91
70
} ) ;
92
71
} ) ;
0 commit comments