mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
28 lines
449 B
JavaScript
28 lines
449 B
JavaScript
require('../maker');
|
|
|
|
var assert = require('assert'),
|
|
path = require('path'),
|
|
fs = require('fs');
|
|
|
|
// Node shims for < v0.7
|
|
fs.existsSync = fs.existsSync || path.existsSync;
|
|
|
|
silent();
|
|
|
|
function numLines(str) {
|
|
return typeof str === 'string' ? str.match(/\n/g).length : 0;
|
|
}
|
|
|
|
shell.rm('-rf', 'tmp');
|
|
shell.mkdir('tmp')
|
|
|
|
//
|
|
// Valids
|
|
//
|
|
|
|
var tmp = tempdir();
|
|
assert.equal(error(), null);
|
|
assert.equal(fs.existsSync(tmp), true);
|
|
|
|
exit(123);
|