@@ -9,16 +9,16 @@ const cwd = path.join(__dirname, '..')
99
1010suite ( 'nv cli' , ( ) => {
1111 test ( 'should contain help information' , ( ) => {
12- const result = execFileSync ( nv , [ '--help' ] , { cwd : cwd } ) . toString ( )
12+ const result = execFileSync ( nv , [ '--help' ] , { cwd } ) . toString ( )
1313 assert . ok ( result . includes ( 'List Node.js versions' ) )
1414 } )
1515
1616 test ( 'should contain information about version 8' , ( ) => {
17- const result = JSON . parse ( execFileSync ( nv , [ 'ls' , '8' ] , { cwd : cwd } ) . toString ( ) )
17+ const result = JSON . parse ( execFileSync ( nv , [ 'ls' , '8' ] , { cwd } ) . toString ( ) )
1818 assert . strictEqual ( result . codename , 'carbon' )
1919 } )
2020 test ( 'should contain output newline json' , ( ) => {
21- const result = execFileSync ( nv , [ 'ls' , '8.x' , '--no-pretty-json' ] , { cwd : cwd } )
21+ const result = execFileSync ( nv , [ 'ls' , '8.x' , '--no-pretty-json' ] , { cwd } )
2222 . toString ( ) . trim ( ) . split ( '\n' )
2323 . map ( ( line ) => JSON . parse ( line ) )
2424
@@ -28,7 +28,7 @@ suite('nv cli', () => {
2828 } )
2929 } )
3030 test ( 'should only contain the latest of each major' , ( ) => {
31- const result = execFileSync ( nv , [ 'ls' , '16.x || 18.x' , '--no-pretty-json' , '--latest-of-major-only' ] , { cwd : cwd } )
31+ const result = execFileSync ( nv , [ 'ls' , '16.x || 18.x' , '--no-pretty-json' , '--latest-of-major-only' ] , { cwd } )
3232 . toString ( ) . trim ( ) . split ( '\n' )
3333 . map ( ( line ) => JSON . parse ( line ) )
3434
0 commit comments