Skip to content
Myr

test.command.executableSubcommand.tsnode.js

This file

Path

test/test.command.executableSubcommand.tsnode.js

10 lines · 314 bytes · JavaScript

Last changed by

Merge pull request #849 from KillWolfVlad/feature/executeSubCommand-tsnodeTomoaki Abebefore adoption8bcc493

History of this file

Take it

Merge pull request #849 from KillWolfVlad/feature/executeSubCommand-tsnodeTomoaki Abebefore adoption8bcc493

lines 1–10why, one step back
1var exec = require('child_process').exec
2 , path = require('path')3 , should = require('should');45var bin = path.join(__dirname, './fixtures-ts/pm.ts')67// success case8exec(process.argv[0] + ' -r ts-node/register ' + bin + ' install', function (error, stdout, stderr) {9 stdout.should.equal('install\n');10});