diff --git a/server/rest.js b/server/rest.js index 4a4da429..81d5ac7b 100644 --- a/server/rest.js +++ b/server/rest.js @@ -346,7 +346,7 @@ function copyFiles(files, processFunc, callback) { function isRootWin32(path) { const isRoot = path === '/'; const isConfig = config('root') === '/'; - + return isWin32 && isRoot && isConfig; } diff --git a/test/server/rest.js b/test/server/rest.js index fbed5287..2924f752 100644 --- a/test/server/rest.js +++ b/test/server/rest.js @@ -26,7 +26,7 @@ test('rest: formatMsg: json', (t) => { test('rest: getWin32RootMsg', (t) => { const {message}= _getWin32RootMsg(); - t.equal(message,'Could not copy from\/to root on windows!', 'should return error'); + t.equal(message,'Could not copy from/to root on windows!', 'should return error'); t.end(); });