@@ -65,7 +65,7 @@ describe('assertions', function () {
6565 it ( '#header test value' , function ( ) {
6666 const req = { headers : { foo : 'bar' } } ;
6767 const res = {
68- getHeader : function ( key ) {
68+ getHeader : function ( ) {
6969 return 'foo' ;
7070 }
7171 } ;
@@ -91,7 +91,7 @@ describe('assertions', function () {
9191 it ( '#header case insensitive' , function ( ) {
9292 const req = { headers : { foo : 'bar' } } ;
9393 const res = {
94- getHeader : function ( key ) {
94+ getHeader : function ( ) {
9595 return 'foo' ;
9696 }
9797 } ;
@@ -105,7 +105,7 @@ describe('assertions', function () {
105105 it ( '#headers' , function ( ) {
106106 const req = { headers : { foo : 'bar' } } ;
107107 const res = {
108- getHeader : function ( key ) {
108+ getHeader : function ( ) {
109109 return 'foo' ;
110110 }
111111 } ;
@@ -129,7 +129,7 @@ describe('assertions', function () {
129129 it ( '#json' , function ( ) {
130130 const req = { headers : { 'content-type' : [ 'application/json' ] } } ;
131131 const res = {
132- getHeader : function ( key ) {
132+ getHeader : function ( ) {
133133 return 'application/json' ;
134134 }
135135 } ;
@@ -153,7 +153,7 @@ describe('assertions', function () {
153153 it ( '#text' , function ( ) {
154154 const req = { headers : { 'content-type' : [ 'text/plain' ] } } ;
155155 const res = {
156- getHeader : function ( key ) {
156+ getHeader : function ( ) {
157157 return 'text/plain' ;
158158 }
159159 } ;
@@ -173,7 +173,7 @@ describe('assertions', function () {
173173 it ( '#html' , function ( ) {
174174 const req = { headers : { 'content-type' : [ 'text/html' ] } } ;
175175 const res = {
176- getHeader : function ( key ) {
176+ getHeader : function ( ) {
177177 return 'text/html' ;
178178 }
179179 } ;
@@ -280,11 +280,11 @@ describe('assertions', function () {
280280
281281 ( function ( ) {
282282 req . should . not . have . param ( 'foo' ) ;
283- } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e p r o p e r t y \ 'f o o \ '/ ) ;
283+ } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e p r o p e r t y ' f o o ' / ) ;
284284
285285 ( function ( ) {
286286 req . should . not . have . param ( 'foo' , 'bar' ) ;
287- } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e p r o p e r t y \ 'f o o \ ' o f \ 'b a r \ '/ ) ;
287+ } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e p r o p e r t y ' f o o ' o f ' b a r ' / ) ;
288288 } ) ;
289289
290290 it ( '#param (nested)' , function ( ) {
@@ -300,12 +300,12 @@ describe('assertions', function () {
300300
301301 ( function ( ) {
302302 req . should . not . have . nested . param ( 'form.name' ) ;
303- } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e n e s t e d p r o p e r t y \ 'f o r m .n a m e \ '/ ) ;
303+ } ) . should . throw ( / e x p e c t e d .* t o n o t h a v e n e s t e d p r o p e r t y ' f o r m .n a m e ' / ) ;
304304
305305 ( function ( ) {
306306 req . should . not . have . nested . param ( 'form.lastName' , 'bob' ) ;
307307 } ) . should . throw (
308- / e x p e c t e d .* t o n o t h a v e n e s t e d p r o p e r t y \ 'f o r m .l a s t N a m e \ ' o f \ 'b o b \ '/
308+ / e x p e c t e d .* t o n o t h a v e n e s t e d p r o p e r t y ' f o r m .l a s t N a m e ' o f ' b o b ' /
309309 ) ;
310310 } ) ;
311311
0 commit comments