Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions lib/node_modules/@stdlib/namespace/test/test.cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
var expected;
var cmd;

expected = readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {

Check warning on line 104 in lib/node_modules/@stdlib/namespace/test/test.cli.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'readFileSync'
'encoding': 'utf8'
});
cmd = [
Expand All @@ -127,7 +127,7 @@
var expected;
var cmd;

expected = readFileSync( resolve( __dirname, '..', 'docs', 'usage.txt' ), {

Check warning on line 130 in lib/node_modules/@stdlib/namespace/test/test.cli.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected sync method: 'readFileSync'
'encoding': 'utf8'
});
cmd = [
Expand Down Expand Up @@ -191,6 +191,7 @@

tape( 'the command-line interface prints selected fields of the stdlib namespace (comma-separated values)', opts, function test( t ) {
var expected;
var opts;
var cmd;

cmd = [
Expand All @@ -201,7 +202,11 @@

expected = csv( namespace(), [ 'alias', 'path' ] );

exec( cmd.join( ' ' ), done );
opts = {
'maxBuffer': 5000*1024
};

exec( cmd.join( ' ' ), opts, done );

function done( error, stdout, stderr ) {
if ( error ) {
Expand All @@ -218,6 +223,7 @@

tape( 'the command-line interface prints the stdlib namespace (newline-delimited JSON)', opts, function test( t ) {
var fields;
var opts;
var cmd;
var ns;

Expand All @@ -228,7 +234,11 @@
fields = [ 'alias', 'path', 'type', 'related' ];
ns = namespace();

exec( cmd.join( ' ' ), done );
opts = {
'maxBuffer': 5000*1024
};

exec( cmd.join( ' ' ), opts, done );

function done( error, stdout, stderr ) {
var expected;
Expand Down