@@ -25,6 +25,7 @@ var exec = require( 'child_process' ).exec;
2525var tape = require ( 'tape' ) ;
2626var IS_BROWSER = require ( '@stdlib/assert/is-browser' ) ;
2727var IS_WINDOWS = require ( '@stdlib/assert/is-windows' ) ;
28+ var EXEC_PATH = require ( '@stdlib/process/exec-path' ) ;
2829var readFileSync = require ( '@stdlib/fs/read-file' ) . sync ;
2930
3031
@@ -56,7 +57,7 @@ tape( 'when invoked with a `--help` flag, the command-line interface prints the
5657 'encoding' : 'utf8'
5758 } ) ;
5859 cmd = [
59- process . execPath ,
60+ EXEC_PATH ,
6061 fpath ,
6162 '--help'
6263 ] ;
@@ -82,7 +83,7 @@ tape( 'when invoked with a `-h` flag, the command-line interface prints the help
8283 'encoding' : 'utf8'
8384 } ) ;
8485 cmd = [
85- process . execPath ,
86+ EXEC_PATH ,
8687 fpath ,
8788 '-h'
8889 ] ;
@@ -102,7 +103,7 @@ tape( 'when invoked with a `-h` flag, the command-line interface prints the help
102103
103104tape ( 'when invoked with a `--version` flag, the command-line interface prints the version to `stderr`' , opts , function test ( t ) {
104105 var cmd = [
105- process . execPath ,
106+ EXEC_PATH ,
106107 fpath ,
107108 '--version'
108109 ] ;
@@ -122,7 +123,7 @@ tape( 'when invoked with a `--version` flag, the command-line interface prints t
122123
123124tape ( 'when invoked with a `-V` flag, the command-line interface prints the version to `stderr`' , opts , function test ( t ) {
124125 var cmd = [
125- process . execPath ,
126+ EXEC_PATH ,
126127 fpath ,
127128 '-V'
128129 ] ;
@@ -140,9 +141,9 @@ tape( 'when invoked with a `-V` flag, the command-line interface prints the vers
140141 }
141142} ) ;
142143
143- tape ( 'the command-line interface prints `process.platform` to `stdout` indicating the platform byte order' , opts , function test ( t ) {
144+ tape ( 'the command-line interface prints to `stdout` indicating the platform byte order' , opts , function test ( t ) {
144145 var cmd = [
145- process . execPath ,
146+ EXEC_PATH ,
146147 fpath
147148 ] ;
148149
@@ -154,7 +155,7 @@ tape( 'the command-line interface prints `process.platform` to `stdout` indicati
154155 t . fail ( error . message ) ;
155156 } else {
156157 str = stdout . toString ( ) ;
157- t . strictEqual ( str === 'little-endian\n' || str === 'big-endian\n' , true , 'prints the platform to `stdout`' ) ;
158+ t . strictEqual ( str === 'little-endian\n' || str === 'big-endian\n' , true , 'prints to `stdout`' ) ;
158159 t . strictEqual ( stderr . toString ( ) , '' , 'does not print to `stderr`' ) ;
159160 }
160161 t . end ( ) ;
0 commit comments