test(rest) isRootWin32

This commit is contained in:
coderaiser 2017-12-01 15:46:26 +02:00
parent b64ed343c2
commit d3b6a7505f
2 changed files with 10 additions and 0 deletions

View file

@ -5,6 +5,7 @@ const rest = require('../../server/rest');
const {
_formatMsg,
_getWin32RootMsg,
_isRootWin32,
} = rest;
test('rest: formatMsg', (t) => {
@ -30,3 +31,11 @@ test('rest: getWin32RootMsg', (t) => {
t.end();
});
test('rest: isRootWin32', (t) => {
const path = '/';
const result = _isRootWin32('/');
t.notOk(result, 'should equal');
t.end();
});