@@ -15,7 +15,7 @@ test("url_rewriting should support support all kinds of links", function (t) {
1515 getServers (
1616 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
1717 function ( err , servers ) {
18- t . ifErr ( err ) ;
18+ t . error ( err ) ;
1919 function cleanup ( ) {
2020 servers . kill ( function ( ) {
2121 t . end ( ) ;
@@ -43,7 +43,7 @@ test("should return control to parent when route doesn't match and no referer is
4343 getServers (
4444 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
4545 function ( err , servers ) {
46- t . ifErr ( err ) ;
46+ t . error ( err ) ;
4747 function cleanup ( ) {
4848 servers . kill ( function ( ) {
4949 t . end ( ) ;
@@ -72,7 +72,7 @@ test("should redirect root-relative urls when the correct target can be determin
7272 getServers (
7373 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
7474 function ( err , servers ) {
75- t . ifErr ( err ) ;
75+ t . error ( err ) ;
7676 function cleanup ( ) {
7777 servers . kill ( function ( ) {
7878 t . end ( ) ;
@@ -104,7 +104,7 @@ test("should redirect root-relative urls when the correct target can be determin
104104 getServers (
105105 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
106106 function ( err , servers ) {
107- t . ifErr ( err ) ;
107+ t . error ( err ) ;
108108 function cleanup ( ) {
109109 servers . kill ( function ( ) {
110110 t . end ( ) ;
@@ -136,7 +136,7 @@ test("should NOT redirect http urls that have had the slashes merged (http:/ ins
136136 getServers (
137137 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
138138 function ( err , servers ) {
139- t . ifErr ( err ) ;
139+ t . error ( err ) ;
140140 function cleanup ( ) {
141141 servers . kill ( function ( ) {
142142 t . end ( ) ;
@@ -159,7 +159,7 @@ test("should redirect http urls that have had the have two occurrences of /prefi
159159 getServers (
160160 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
161161 function ( err , servers ) {
162- t . ifErr ( err ) ;
162+ t . error ( err ) ;
163163 function cleanup ( ) {
164164 servers . kill ( function ( ) {
165165 t . end ( ) ;
@@ -189,7 +189,7 @@ test("should redirect http urls that end in a TLD without a /", function (t) {
189189 getServers (
190190 { unblocker : new Unblocker ( { clientScripts : false } ) , sourceContent } ,
191191 function ( err , servers ) {
192- t . ifErr ( err ) ;
192+ t . error ( err ) ;
193193 function cleanup ( ) {
194194 servers . kill ( function ( ) {
195195 t . end ( ) ;
@@ -219,7 +219,7 @@ test("should redirect http urls that end in a TLD without a / when req.protocol
219219 const unblocker = new Unblocker ( { } ) ;
220220 app . use ( unblocker ) ;
221221 getServers ( { app, unblocker, sourceContent } , function ( err , servers ) {
222- t . ifErr ( err ) ;
222+ t . error ( err ) ;
223223 function cleanup ( ) {
224224 servers . kill ( function ( ) {
225225 t . end ( ) ;
0 commit comments