Skip to content
Myr

test.command.executableSubcommandAlias.help.js

This file

Path

test/test.command.executableSubcommandAlias.help.js

17 lines · 463 bytes · JavaScript

Last changed by

Merge branch 'pr/545'zhiyeleebefore adoptionc6236d9

History of this file

Take it

Merge branch 'pr/545'zhiyeleebefore adoptionc6236d9

lines 1–17why, one step back
1var exec = require('child_process').exec
2 , path = require('path')3 , should = require('should');4567var bin = path.join(__dirname, './fixtures/pm')89// success case10exec(bin + ' help', function (error, stdout, stderr) {11 stdout.should.containEql('install|i');12 stdout.should.containEql('search|s');13 stdout.should.containEql('cache|c');14 stdout.should.containEql('list');15 stdout.should.containEql('publish|p');16 stdout.should.not.containEql('pm|');17});