@@ -2,29 +2,30 @@ var inspect = require('../');
22var test = require ( 'tape' ) ;
33
44test ( 'bigint' , { skip : typeof BigInt === 'undefined' } , function ( t ) {
5- t . test ( 'primitives' , function ( st ) {
6- st . plan ( 3 ) ;
5+ t . test ( 'primitives' , function ( st ) {
6+ st . plan ( 3 ) ;
77
8- st . equal ( inspect ( BigInt ( - 256 ) ) , '-256n' ) ;
9- st . equal ( inspect ( BigInt ( 0 ) ) , '0n' ) ;
10- st . equal ( inspect ( BigInt ( 256 ) ) , '256n' ) ;
11- } ) ;
8+ st . equal ( inspect ( BigInt ( - 256 ) ) , '-256n' ) ;
9+ st . equal ( inspect ( BigInt ( 0 ) ) , '0n' ) ;
10+ st . equal ( inspect ( BigInt ( 256 ) ) , '256n' ) ;
11+ } ) ;
1212
13- t . test ( 'objects' , function ( st ) {
14- st . plan ( 3 ) ;
13+ t . test ( 'objects' , function ( st ) {
14+ st . plan ( 3 ) ;
1515
16- st . equal ( inspect ( Object ( BigInt ( - 256 ) ) ) , 'Object(-256n)' ) ;
17- st . equal ( inspect ( Object ( BigInt ( 0 ) ) ) , 'Object(0n)' ) ;
18- st . equal ( inspect ( Object ( BigInt ( 256 ) ) ) , 'Object(256n)' ) ;
19- } ) ;
16+ st . equal ( inspect ( Object ( BigInt ( - 256 ) ) ) , 'Object(-256n)' ) ;
17+ st . equal ( inspect ( Object ( BigInt ( 0 ) ) ) , 'Object(0n)' ) ;
18+ st . equal ( inspect ( Object ( BigInt ( 256 ) ) ) , 'Object(256n)' ) ;
19+ } ) ;
2020
21- t . test ( 'syntactic primitives' , function ( st ) {
22- st . plan ( 3 ) ;
21+ t . test ( 'syntactic primitives' , function ( st ) {
22+ st . plan ( 3 ) ;
2323
24- st . equal ( inspect ( Function ( 'return -256n' ) ( ) ) , '-256n' ) ;
25- st . equal ( inspect ( Function ( 'return 0n' ) ( ) ) , '0n' ) ;
26- st . equal ( inspect ( Function ( 'return 256n' ) ( ) ) , '256n' ) ;
27- } ) ;
24+ /* eslint-disable no-new-func */
25+ st . equal ( inspect ( Function ( 'return -256n' ) ( ) ) , '-256n' ) ;
26+ st . equal ( inspect ( Function ( 'return 0n' ) ( ) ) , '0n' ) ;
27+ st . equal ( inspect ( Function ( 'return 256n' ) ( ) ) , '256n' ) ;
28+ } ) ;
2829
29- t . end ( ) ;
30+ t . end ( ) ;
3031} ) ;
0 commit comments