mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
20 lines
296 B
JavaScript
20 lines
296 B
JavaScript
var shell = require('..');
|
|
|
|
var assert = require('assert'),
|
|
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);
|