mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
* chore: switch to eslint * fix: works on older versions of NodeJS now * chore: fix curly braces * chore: fix indents and remove jshint references
20 lines
323 B
JavaScript
20 lines
323 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.SHELLJS_TEST = 'hello world';
|
|
assert.equal(shell.env.SHELLJS_TEST, process.env.SHELLJS_TEST);
|
|
|
|
shell.exit(123);
|