mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
test rm() with absolute path
This commit is contained in:
parent
67585347c0
commit
74efea03bf
@ -58,6 +58,13 @@ shell.rm('-Rf', 'tmp/a');
|
||||
assert.equal(shell.error(), null);
|
||||
assert.equal(fs.existsSync('tmp/a'), false);
|
||||
|
||||
// recursive dir removal - absolute path
|
||||
shell.mkdir('-p', 'tmp/a/b/c');
|
||||
assert.equal(fs.existsSync('tmp/a/b/c'), true);
|
||||
shell.rm('-Rf', path.resolve('./tmp/a'));
|
||||
assert.equal(shell.error(), null);
|
||||
assert.equal(fs.existsSync('tmp/a'), false);
|
||||
|
||||
// wildcard
|
||||
shell.cp('-f', 'resources/file*', 'tmp');
|
||||
assert.equal(shell.error(), null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user