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

Fix settings file migration test

This commit is contained in:
Nick O'Leary 2020-09-25 18:29:47 +01:00
parent b61701fa17
commit 91c2f479bb
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -62,7 +62,8 @@ describe('storage/localfilesystem/settings', function() {
} }
localfilesystemSettings.init({userDir:userDir}).then(async function() { localfilesystemSettings.init({userDir:userDir}).then(async function() {
fs.existsSync(settingsFile).should.be.false(); // (For now) leave the old settings file in place
fs.existsSync(settingsFile).should.be.true();
await checkFile("nodes",{a:1}) await checkFile("nodes",{a:1})
await checkFile("users",{b:2}) await checkFile("users",{b:2})
await checkFile("projects",{c:3}) await checkFile("projects",{c:3})