shelljs/test/env.js
Artur Adib e4d9dabe52 introducing config.silent, config.fatal
deprecates silent()
2012-12-01 09:48:23 -05:00

20 lines
339 B
JavaScript

var shell = require('..');
var assert = require('assert');
shell.config.silent = true;
shell.rm('-rf', 'tmp');
shell.mkdir('tmp')
//
// Valids
//
assert.equal(shell.env['PATH'], process.env['PATH']);
shell.env['MAKERJS_TEST'] = 'hello world';
assert.equal(shell.env['MAKERJS_TEST'], process.env['MAKERJS_TEST']);
shell.exit(123);