mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix test (missing getUserSettings stub 🤷♂️)
This commit is contained in:
parent
ceb9a320ba
commit
5435c9ebd2
@ -489,7 +489,7 @@ describe('storage/localfilesystem', function() {
|
|||||||
var rootdir = path.win32.resolve(userDir+'/some');
|
var rootdir = path.win32.resolve(userDir+'/some');
|
||||||
// make it into a local UNC path
|
// make it into a local UNC path
|
||||||
flowFile = flowFile.replace('C:\\', '\\\\localhost\\c$\\');
|
flowFile = flowFile.replace('C:\\', '\\\\localhost\\c$\\');
|
||||||
localfilesystem.init({userDir:userDir, flowFile:flowFile}, mockRuntime).then(function() {
|
localfilesystem.init({userDir:userDir, flowFile:flowFile, getUserSettings: () => {{}}}, mockRuntime).then(function() {
|
||||||
fs.existsSync(flowFile).should.be.false();
|
fs.existsSync(flowFile).should.be.false();
|
||||||
localfilesystem.saveFlows(testFlow).then(function() {
|
localfilesystem.saveFlows(testFlow).then(function() {
|
||||||
fs.existsSync(flowFile).should.be.true();
|
fs.existsSync(flowFile).should.be.true();
|
||||||
|
Loading…
Reference in New Issue
Block a user