@@ -34,7 +34,7 @@ describe("Prototype Pollution", () => {
3434 . build ( ) ;
3535 expect ( ( ) => {
3636 fuzzTest . execute ( ) ;
37- } ) . toThrowError ( FuzzingExitCode ) ;
37+ } ) . toThrow ( FuzzingExitCode ) ;
3838 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
3939 } ) ;
4040
@@ -47,7 +47,7 @@ describe("Prototype Pollution", () => {
4747 . build ( ) ;
4848 expect ( ( ) => {
4949 fuzzTest . execute ( ) ;
50- } ) . toThrowError ( FuzzingExitCode ) ;
50+ } ) . toThrow ( FuzzingExitCode ) ;
5151 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
5252 } ) ;
5353
@@ -60,7 +60,7 @@ describe("Prototype Pollution", () => {
6060 . build ( ) ;
6161 expect ( ( ) => {
6262 fuzzTest . execute ( ) ;
63- } ) . toThrowError ( FuzzingExitCode ) ;
63+ } ) . toThrow ( FuzzingExitCode ) ;
6464 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
6565 } ) ;
6666
@@ -73,7 +73,7 @@ describe("Prototype Pollution", () => {
7373 . build ( ) ;
7474 expect ( ( ) => {
7575 fuzzTest . execute ( ) ;
76- } ) . toThrowError ( FuzzingExitCode ) ;
76+ } ) . toThrow ( FuzzingExitCode ) ;
7777 expect ( fuzzTest . stderr ) . toContain (
7878 "Prototype Pollution\n Prototype of Function changed" ,
7979 ) ;
@@ -88,7 +88,7 @@ describe("Prototype Pollution", () => {
8888 . build ( ) ;
8989 expect ( ( ) => {
9090 fuzzTest . execute ( ) ;
91- } ) . toThrowError ( FuzzingExitCode ) ;
91+ } ) . toThrow ( FuzzingExitCode ) ;
9292 expect ( fuzzTest . stderr ) . toContain (
9393 "Prototype Pollution\n Prototype of String changed" ,
9494 ) ;
@@ -103,7 +103,7 @@ describe("Prototype Pollution", () => {
103103 . build ( ) ;
104104 expect ( ( ) => {
105105 fuzzTest . execute ( ) ;
106- } ) . toThrowError ( FuzzingExitCode ) ;
106+ } ) . toThrow ( FuzzingExitCode ) ;
107107 expect ( fuzzTest . stderr ) . toContain (
108108 "Prototype Pollution\n Prototype of Number changed" ,
109109 ) ;
@@ -118,7 +118,7 @@ describe("Prototype Pollution", () => {
118118 . build ( ) ;
119119 expect ( ( ) => {
120120 fuzzTest . execute ( ) ;
121- } ) . toThrowError ( FuzzingExitCode ) ;
121+ } ) . toThrow ( FuzzingExitCode ) ;
122122 expect ( fuzzTest . stderr ) . toContain (
123123 "Prototype Pollution\n Prototype of Boolean changed" ,
124124 ) ;
@@ -136,7 +136,7 @@ describe("Prototype Pollution", () => {
136136 . build ( ) ;
137137 expect ( ( ) => {
138138 fuzzTest . execute ( ) ;
139- } ) . toThrowError ( FuzzingExitCode ) ;
139+ } ) . toThrow ( FuzzingExitCode ) ;
140140 expect ( fuzzTest . stderr ) . toContain (
141141 "Prototype Pollution\n a.__proto__ value is " ,
142142 ) ;
@@ -154,7 +154,7 @@ describe("Prototype Pollution", () => {
154154 . build ( ) ;
155155 expect ( ( ) => {
156156 fuzzTest . execute ( ) ;
157- } ) . toThrowError ( FuzzingExitCode ) ;
157+ } ) . toThrow ( FuzzingExitCode ) ;
158158 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution\n a.__proto__" ) ;
159159 } ) ;
160160
@@ -180,7 +180,7 @@ describe("Prototype Pollution", () => {
180180 . build ( ) ;
181181 expect ( ( ) => {
182182 fuzzTest . execute ( ) ;
183- } ) . toThrowError ( FuzzingExitCode ) ;
183+ } ) . toThrow ( FuzzingExitCode ) ;
184184 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
185185 } ) ;
186186
@@ -206,7 +206,7 @@ describe("Prototype Pollution", () => {
206206 . build ( ) ;
207207 expect ( ( ) => {
208208 fuzzTest . execute ( ) ;
209- } ) . toThrowError ( FuzzingExitCode ) ;
209+ } ) . toThrow ( FuzzingExitCode ) ;
210210 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
211211 } ) ;
212212
@@ -219,7 +219,7 @@ describe("Prototype Pollution", () => {
219219 . build ( ) ;
220220 expect ( ( ) => {
221221 fuzzTest . execute ( ) ;
222- } ) . toThrowError ( FuzzingExitCode ) ;
222+ } ) . toThrow ( FuzzingExitCode ) ;
223223 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
224224 } ) ;
225225
@@ -235,7 +235,7 @@ describe("Prototype Pollution", () => {
235235 . build ( ) ;
236236 expect ( ( ) => {
237237 fuzzTest . execute ( ) ;
238- } ) . toThrowError ( FuzzingExitCode ) ;
238+ } ) . toThrow ( FuzzingExitCode ) ;
239239 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
240240 } ) ;
241241
@@ -250,7 +250,7 @@ describe("Prototype Pollution", () => {
250250 . build ( ) ;
251251 expect ( ( ) => {
252252 fuzzTest . execute ( ) ;
253- } ) . toThrowError ( FuzzingExitCode ) ;
253+ } ) . toThrow ( FuzzingExitCode ) ;
254254 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
255255 } ) ;
256256
@@ -265,7 +265,7 @@ describe("Prototype Pollution", () => {
265265 . build ( ) ;
266266 expect ( ( ) => {
267267 fuzzTest . execute ( ) ;
268- } ) . toThrowError ( FuzzingExitCode ) ;
268+ } ) . toThrow ( FuzzingExitCode ) ;
269269 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
270270 } ) ;
271271
@@ -281,7 +281,7 @@ describe("Prototype Pollution", () => {
281281 . build ( ) ;
282282 expect ( ( ) => {
283283 fuzzTest . execute ( ) ;
284- } ) . toThrowError ( FuzzingExitCode ) ;
284+ } ) . toThrow ( FuzzingExitCode ) ;
285285 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
286286 } ) ;
287287
@@ -297,7 +297,7 @@ describe("Prototype Pollution", () => {
297297 . build ( ) ;
298298 expect ( ( ) => {
299299 fuzzTest . execute ( ) ;
300- } ) . toThrowError ( FuzzingExitCode ) ;
300+ } ) . toThrow ( FuzzingExitCode ) ;
301301 expect ( fuzzTest . stderr ) . toContain ( "Prototype Pollution" ) ;
302302 } ) ;
303303
@@ -314,7 +314,7 @@ describe("Prototype Pollution", () => {
314314 // .build();
315315 // expect(() => {
316316 // fuzzTest.execute();
317- // }).toThrowError (FuzzingExitCode);
317+ // }).toThrow (FuzzingExitCode);
318318 // expect(fuzzTest.stderr).toContain("Prototype Pollution");
319319 // });
320320} ) ;
@@ -332,7 +332,7 @@ describe("Prototype Pollution Jest tests", () => {
332332 . build ( ) ;
333333 expect ( ( ) => {
334334 fuzzTest . execute ( ) ;
335- } ) . toThrowError ( JestRegressionExitCode ) ;
335+ } ) . toThrow ( JestRegressionExitCode ) ;
336336 expect ( fuzzTest . stderr ) . toContain (
337337 "Prototype Pollution\n Prototype of Object changed" ,
338338 ) ;
@@ -351,7 +351,7 @@ describe("Prototype Pollution Jest tests", () => {
351351 . build ( ) ;
352352 expect ( ( ) => {
353353 fuzzTest . execute ( ) ;
354- } ) . toThrowError ( JestRegressionExitCode ) ;
354+ } ) . toThrow ( JestRegressionExitCode ) ;
355355 expect ( fuzzTest . stderr ) . toContain (
356356 "Prototype Pollution\n a.__proto__ value is" ,
357357 ) ;
@@ -370,7 +370,7 @@ describe("Prototype Pollution Jest tests", () => {
370370 . build ( ) ;
371371 expect ( ( ) => {
372372 fuzzTest . execute ( ) ;
373- } ) . toThrowError ( JestRegressionExitCode ) ;
373+ } ) . toThrow ( JestRegressionExitCode ) ;
374374 expect ( fuzzTest . stderr ) . toContain (
375375 "Prototype Pollution\n a.__proto__ value is" ,
376376 ) ;
@@ -387,7 +387,7 @@ describe("Prototype Pollution Jest tests", () => {
387387 . build ( ) ;
388388 expect ( ( ) => {
389389 fuzzTest . execute ( ) ;
390- } ) . toThrowError ( JestRegressionExitCode ) ;
390+ } ) . toThrow ( JestRegressionExitCode ) ;
391391 expect ( fuzzTest . stderr ) . toContain (
392392 "Prototype Pollution\n Prototype of Object changed" ,
393393 ) ;
0 commit comments