@@ -24,15 +24,15 @@ describe("$ w3c-validator invalid", function() {
2424 } ) ;
2525} ) ;
2626
27- describe ( "$ w3c-validator -n www.whatsmyip.org " , function ( ) {
27+ describe ( "$ w3c-validator abc.xyz " , function ( ) {
2828 this . timeout ( 300000 ) ;
2929
3030 var _error ;
3131 var _stdout ;
3232 var _stderr ;
3333
3434 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 ) {
3636 _error = error ;
3737 _stdout = stdout ;
3838 _stderr = stderr ;
@@ -49,44 +49,23 @@ describe("$ w3c-validator -n www.whatsmyip.org", function() {
4949 } ) ;
5050} ) ;
5151
52- describe ( "$ w3c-validator -n http ://www.whatsmyip.org " , function ( ) {
52+ describe ( "$ w3c-validator https ://abc.xyz " , function ( ) {
5353 this . timeout ( 300000 ) ;
5454
5555 var _error ;
5656 var _stdout ;
5757 var _stderr ;
5858
5959 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 ) {
6161 _error = error ;
6262 _stdout = stdout ;
6363 _stderr = stderr ;
6464 done ( ) ;
6565 } ) ;
6666 } ) ;
6767
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 ( ) {
9069 should . equal ( _error , null ) ;
9170 } ) ;
9271} ) ;
0 commit comments