@@ -245,8 +245,8 @@ class FuzzTestBuilder {
245
245
* @param {boolean } logTestOutput - whether to print the output of the fuzz test to the console.
246
246
* True if parameter is undefined.
247
247
*/
248
- logTestOutput ( logTestOutput ) {
249
- this . _logTestOutput = logTestOutput === undefined ? true : logTestOutput ;
248
+ logTestOutput ( logTestOutput = true ) {
249
+ this . _logTestOutput = logTestOutput ;
250
250
return this ;
251
251
}
252
252
@@ -270,18 +270,17 @@ class FuzzTestBuilder {
270
270
/**
271
271
* @param {boolean } verbose - set verbose/debug output in fuzz test.
272
272
*/
273
- verbose ( verbose ) {
274
- this . _verbose = verbose === undefined ? true : verbose ;
273
+ verbose ( verbose = true ) {
274
+ this . _verbose = verbose ;
275
275
return this ;
276
276
}
277
277
278
278
/**
279
279
* @param {boolean } listFuzzTestNames - whether to list all fuzz test names on the console.
280
280
* True if parameter is undefined.
281
281
*/
282
- listFuzzTestNames ( listFuzzTestNames ) {
283
- this . _listFuzzTestNames =
284
- listFuzzTestNames === undefined ? true : listFuzzTestNames ;
282
+ listFuzzTestNames ( listFuzzTestNames = true ) {
283
+ this . _listFuzzTestNames = listFuzzTestNames ;
285
284
if ( this . _listFuzzTestNames ) {
286
285
this . jestTestName ( "__NOT_AN_ACTUAL_TESTNAME__" ) ;
287
286
}
@@ -425,8 +424,8 @@ class FuzzTestBuilder {
425
424
return this ;
426
425
}
427
426
428
- coverage ( coverage ) {
429
- this . _coverage = coverage === undefined ? true : coverage ;
427
+ coverage ( coverage = true ) {
428
+ this . _coverage = coverage ;
430
429
return this ;
431
430
}
432
431
@@ -435,8 +434,8 @@ class FuzzTestBuilder {
435
434
return this ;
436
435
}
437
436
438
- asJson ( asJson ) {
439
- this . _asJson = asJson === undefined ? true : asJson ;
437
+ asJson ( asJson = true ) {
438
+ this . _asJson = asJson ;
440
439
return this ;
441
440
}
442
441
0 commit comments