mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-03 21:23:05 +00:00
test(rest) isRootAll: coverage
This commit is contained in:
parent
cd1fe7db29
commit
cd0fad79e8
2 changed files with 12 additions and 5 deletions
|
|
@ -6,6 +6,7 @@ const {
|
|||
_formatMsg,
|
||||
_getWin32RootMsg,
|
||||
_isRootWin32,
|
||||
_isRootAll,
|
||||
} = rest;
|
||||
|
||||
test('rest: formatMsg', (t) => {
|
||||
|
|
@ -25,7 +26,7 @@ test('rest: formatMsg: json', (t) => {
|
|||
});
|
||||
|
||||
test('rest: getWin32RootMsg', (t) => {
|
||||
const {message}= _getWin32RootMsg();
|
||||
const {message} = _getWin32RootMsg();
|
||||
|
||||
t.equal(message,'Could not copy from/to root on windows!', 'should return error');
|
||||
t.end();
|
||||
|
|
@ -38,3 +39,10 @@ test('rest: isRootWin32', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('rest: isRootAll', (t) => {
|
||||
const result = _isRootAll(['/', '/h']);
|
||||
|
||||
t.notOk(result, 'should equal');
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue