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
296 B
JavaScript
20 lines
296 B
JavaScript
var shell = require('..');
|
|
|
|
var assert = require('assert');
|
|
var fs = require('fs');
|
|
|
|
shell.config.silent = true;
|
|
|
|
shell.rm('-rf', 'tmp');
|
|
shell.mkdir('tmp');
|
|
|
|
//
|
|
// Valids
|
|
//
|
|
|
|
var tmp = shell.tempdir();
|
|
assert.equal(shell.error(), null);
|
|
assert.equal(fs.existsSync(tmp), true);
|
|
|
|
shell.exit(123);
|