@@ -146,9 +146,7 @@ describe('Number Type Formats Tests', () => {
146
146
1000000000000 ,
147
147
) ;
148
148
expect ( result . success ) . toBe ( true ) ;
149
- if ( result . success ) {
150
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
151
- }
149
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
152
150
} ) ;
153
151
154
152
it ( 'should validate string values within int64 range' , ( ) => {
@@ -157,9 +155,7 @@ describe('Number Type Formats Tests', () => {
157
155
'1000000000000' ,
158
156
) ;
159
157
expect ( result . success ) . toBe ( true ) ;
160
- if ( result . success ) {
161
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
162
- }
158
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
163
159
} ) ;
164
160
165
161
it ( 'should reject values above int64 maximum' , ( ) => {
@@ -250,9 +246,7 @@ describe('Number Type Formats Tests', () => {
250
246
1000000000000 ,
251
247
) ;
252
248
expect ( result . success ) . toBe ( true ) ;
253
- if ( result . success ) {
254
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
255
- }
249
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
256
250
} ) ;
257
251
258
252
it ( 'should reject negative values' , ( ) => {
@@ -365,9 +359,7 @@ describe('Number Type Formats Tests', () => {
365
359
1000000000000 ,
366
360
) ;
367
361
expect ( result . success ) . toBe ( true ) ;
368
- if ( result . success ) {
369
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
370
- }
362
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
371
363
} ) ;
372
364
373
365
it ( 'should validate string values within int64 range' , ( ) => {
@@ -376,9 +368,7 @@ describe('Number Type Formats Tests', () => {
376
368
'1000000000000' ,
377
369
) ;
378
370
expect ( result . success ) . toBe ( true ) ;
379
- if ( result . success ) {
380
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
381
- }
371
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
382
372
} ) ;
383
373
384
374
it ( 'should reject values above int64 maximum' , ( ) => {
@@ -469,9 +459,7 @@ describe('Number Type Formats Tests', () => {
469
459
1000000000000 ,
470
460
) ;
471
461
expect ( result . success ) . toBe ( true ) ;
472
- if ( result . success ) {
473
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
474
- }
462
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
475
463
} ) ;
476
464
477
465
it ( 'should reject negative values' , ( ) => {
@@ -503,9 +491,7 @@ describe('Number Type Formats Tests', () => {
503
491
'1000000000000' ,
504
492
) ;
505
493
expect ( result . success ) . toBe ( true ) ;
506
- if ( result . success ) {
507
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
508
- }
494
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
509
495
} ) ;
510
496
511
497
it ( 'should reject values below int64 minimum' , ( ) => {
@@ -538,9 +524,7 @@ describe('Number Type Formats Tests', () => {
538
524
'1000000000000' ,
539
525
) ;
540
526
expect ( result . success ) . toBe ( true ) ;
541
- if ( result . success ) {
542
- expect ( typeof result . output ) . toBe ( 'bigint' ) ;
543
- }
527
+ expect ( typeof result . output ) . toBe ( 'bigint' ) ;
544
528
} ) ;
545
529
546
530
it ( 'should reject negative values' , ( ) => {
0 commit comments