@@ -27,8 +27,8 @@ test('test callback-less, 1-arg, destroy() throws', function (t) {
2727test ( 'test destroy non-existent directory' , function ( t ) {
2828 t . plan ( 4 )
2929
30- var location = tempy . directory ( )
31- var parent = path . dirname ( location )
30+ const location = tempy . directory ( )
31+ const parent = path . dirname ( location )
3232
3333 // For symmetry with the opposite test below.
3434 t . ok ( fs . existsSync ( parent ) , 'parent exists before' )
@@ -50,8 +50,8 @@ test('test destroy non-existent directory', function (t) {
5050test ( 'test destroy non-existent parent directory' , function ( t ) {
5151 t . plan ( 3 )
5252
53- var location = '/1/2/3/4'
54- var parent = path . dirname ( location )
53+ const location = '/1/2/3/4'
54+ const parent = path . dirname ( location )
5555
5656 t . notOk ( fs . existsSync ( parent ) , 'parent does not exist before' )
5757
@@ -62,7 +62,7 @@ test('test destroy non-existent parent directory', function (t) {
6262} )
6363
6464test ( 'test destroy non leveldb directory' , function ( t ) {
65- var tree = {
65+ const tree = {
6666 foo : 'FOO' ,
6767 bar : { one : 'ONE' , two : 'TWO' , three : 'THREE' }
6868 }
@@ -87,7 +87,7 @@ test('test destroy non leveldb directory', function (t) {
8787} )
8888
8989makeTest ( 'test destroy() cleans and removes leveldb-only dir' , function ( db , t , done ) {
90- var location = db . location
90+ const location = db . location
9191 db . close ( function ( err ) {
9292 t . ifError ( err , 'no error from close()' )
9393
@@ -101,7 +101,7 @@ makeTest('test destroy() cleans and removes leveldb-only dir', function (db, t,
101101} )
102102
103103makeTest ( 'test destroy() cleans and removes only leveldb parts of a dir' , function ( db , t , done ) {
104- var location = db . location
104+ const location = db . location
105105 fs . writeFileSync ( path . join ( location , 'foo' ) , 'FOO' )
106106
107107 db . close ( function ( err ) {
0 commit comments