mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-25 16:07:37 +00:00
test: remove tests for make (deprecated) (#624)
This commit is contained in:
parent
927758f714
commit
1ed8a173e1
20
test/make.js
20
test/make.js
@ -1,20 +0,0 @@
|
||||
var shell = require('..');
|
||||
var child = require('child_process');
|
||||
var assert = require('assert');
|
||||
|
||||
shell.mkdir('-p', 'tmp');
|
||||
var file = 'tmp/tempscript' + Math.random() + '.js';
|
||||
var script = 'require(\'../../make.js\');' +
|
||||
'target.all=function(){' +
|
||||
' echo("first"); ' +
|
||||
' cp("this_file_doesnt_exist", ".");' +
|
||||
' echo("second");' +
|
||||
'}';
|
||||
|
||||
shell.ShellString(script).to(file);
|
||||
child.exec(JSON.stringify(process.execPath) + ' ' + file, function (err, stdout) {
|
||||
assert.ok(stdout.match('first'));
|
||||
assert.ok(!stdout.match('second')); // Make should die on errors, so this should never get echoed
|
||||
|
||||
shell.exit(123);
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user