11'use strict'
22
3- var test = require ( 'tape' )
4- var supports = require ( '..' )
5- var shape = require ( './shape' )
6- var cloneable = require ( './cloneable' )
3+ const test = require ( 'tape' )
4+ const supports = require ( '..' )
5+ const shape = require ( './shape' )
6+ const cloneable = require ( './cloneable' )
77
88test ( 'no options' , function ( t ) {
99 shape ( t , supports ( ) )
@@ -13,7 +13,7 @@ test('no options', function (t) {
1313
1414test ( 'falsy options' , function ( t ) {
1515 ; [ null , false , undefined , 0 , '' ] . forEach ( function ( value ) {
16- var manifest = supports ( {
16+ const manifest = supports ( {
1717 bufferKeys : value ,
1818 additionalMethods : {
1919 foo : value
@@ -29,7 +29,7 @@ test('falsy options', function (t) {
2929
3030test ( 'truthy options' , function ( t ) {
3131 ; [ true , { } , 'yes' , 1 , [ ] ] . forEach ( function ( value ) {
32- var manifest = supports ( {
32+ const manifest = supports ( {
3333 streams : value ,
3434 additionalMethods : {
3535 foo : value
@@ -45,9 +45,9 @@ test('truthy options', function (t) {
4545} )
4646
4747test ( 'merges input objects without mutating them' , function ( t ) {
48- var input1 = { bufferKeys : null , streams : false }
49- var input2 = { streams : true , additionalMethods : { } }
50- var manifest = supports ( input1 , input2 )
48+ const input1 = { bufferKeys : null , streams : false }
49+ const input2 = { streams : true , additionalMethods : { } }
50+ const manifest = supports ( input1 , input2 )
5151
5252 manifest . foobar = true
5353 manifest . additionalMethods . baz = true
@@ -61,15 +61,15 @@ test('merges input objects without mutating them', function (t) {
6161} )
6262
6363test ( 'inherits additionalMethods' , function ( t ) {
64- var manifest = supports ( { additionalMethods : { foo : true } } , { } )
64+ const manifest = supports ( { additionalMethods : { foo : true } } , { } )
6565 t . same ( manifest . additionalMethods , { foo : true } )
6666 t . end ( )
6767} )
6868
6969test ( 'does not merge additionalMethods' , function ( t ) {
70- var input1 = { additionalMethods : { foo : true } }
71- var input2 = { additionalMethods : { bar : true } }
72- var manifest = supports ( input1 , input2 )
70+ const input1 = { additionalMethods : { foo : true } }
71+ const input2 = { additionalMethods : { bar : true } }
72+ const manifest = supports ( input1 , input2 )
7373 t . same ( manifest . additionalMethods , { bar : true } )
7474 t . end ( )
7575} )
0 commit comments