@@ -103,19 +103,19 @@ describe('unvalidated-redirect-analyzer', () => {
103103 it ( 'should not report headers other than Location' , ( ) => {
104104 unvalidatedRedirectAnalyzer . analyze ( 'X-test' , NOT_TAINTED_LOCATION )
105105
106- expect ( report ) . to . not . have . been . called
106+ expect ( report ) . not . to . be . called
107107 } )
108108
109109 it ( 'should not report Location header with non string values' , ( ) => {
110110 unvalidatedRedirectAnalyzer . analyze ( 'X-test' , [ TAINTED_LOCATION ] )
111111
112- expect ( report ) . to . not . have . been . called
112+ expect ( report ) . not . to . be . called
113113 } )
114114
115115 it ( 'should not report Location header with not tainted string value' , ( ) => {
116116 unvalidatedRedirectAnalyzer . analyze ( 'Location' , NOT_TAINTED_LOCATION )
117117
118- expect ( report ) . to . not . have . been . called
118+ expect ( report ) . not . to . be . called
119119 } )
120120
121121 it ( 'should report Location header with tainted string value' , ( ) => {
@@ -127,25 +127,25 @@ describe('unvalidated-redirect-analyzer', () => {
127127 it ( 'should not report if tainted origin is referer header exclusively' , ( ) => {
128128 unvalidatedRedirectAnalyzer . analyze ( 'Location' , TAINTED_HEADER_REFERER_ONLY )
129129
130- expect ( report ) . to . not . be . called
130+ expect ( report ) . not . to . be . called
131131 } )
132132
133133 it ( 'should not report if tainted origin is path param exclusively' , ( ) => {
134134 unvalidatedRedirectAnalyzer . analyze ( 'Location' , TAINTED_PATH_PARAMS_ONLY )
135135
136- expect ( report ) . to . not . be . called
136+ expect ( report ) . not . to . be . called
137137 } )
138138
139139 it ( 'should not report if tainted origin is url exclusively' , ( ) => {
140140 unvalidatedRedirectAnalyzer . analyze ( 'Location' , TAINTED_URL_ONLY )
141141
142- expect ( report ) . to . not . be . called
142+ expect ( report ) . not . to . be . called
143143 } )
144144
145145 it ( 'should not report if all tainted origin are safe' , ( ) => {
146146 unvalidatedRedirectAnalyzer . analyze ( 'Location' , TAINTED_SAFE_RANGES )
147147
148- expect ( report ) . to . not . be . called
148+ expect ( report ) . not . to . be . called
149149 } )
150150
151151 it ( 'should report if tainted origin contains referer header among others' , ( ) => {
0 commit comments