1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix userDir test case when .config.json exists (#1350)

This commit is contained in:
Kazuki Nakanishi 2017-07-21 19:12:04 +09:00 committed by Nick O'Leary
parent 781ca77794
commit 2f88dc64fc

View File

@ -121,7 +121,7 @@ describe('LocalFileSystem', function() {
it('should set userDir to USERPROFILE/.node-red',function(done) { it('should set userDir to USERPROFILE/.node-red',function(done) {
var oldNRH = process.env.NODE_RED_HOME; var oldNRH = process.env.NODE_RED_HOME;
process.env.NODE_RED_HOME = ""; process.env.NODE_RED_HOME = path.join(userDir,"NRH");
var oldHOME = process.env.HOME; var oldHOME = process.env.HOME;
process.env.HOME = ""; process.env.HOME = "";
var oldHOMEPATH = process.env.HOMEPATH; var oldHOMEPATH = process.env.HOMEPATH;