From 7844c4faf6a3c4e11639521abd6f8b65afb1228a Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 21 Dec 2018 16:51:52 +0000 Subject: [PATCH] fix micromatch dependency to be fixed fix tests to exit more cleanly --- package.json | 2 +- test/nodes/core/storage/50-file_spec.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 503cfb1e9..9000beeaa 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "jsonata": "1.5.4", "media-typer": "1.0.1", "memorystore": "1.6.0", - "micromatch": "~3.1.10", + "micromatch": "3.1.10", "mime": "2.4.0", "mqtt": "2.18.8", "multer": "1.4.1", diff --git a/test/nodes/core/storage/50-file_spec.js b/test/nodes/core/storage/50-file_spec.js index 58144bde0..fbd3285ac 100644 --- a/test/nodes/core/storage/50-file_spec.js +++ b/test/nodes/core/storage/50-file_spec.js @@ -671,7 +671,8 @@ describe('file Nodes', function() { },wait); n1.receive({payload:"test"}); }); - RED.settings.fileNodeBlockList = [ ]; + delete RED.settings.fileNodeAllowList; + delete RED.settings.fileNodeBlockList; }); }); @@ -907,6 +908,8 @@ describe('file Nodes', function() { },wait); n1.receive({payload:""}); }); + delete RED.settings.fileNodeAllowList; + delete RED.settings.fileNodeBlockList; }); it('should fail to read from the settings file', function(done) { @@ -929,6 +932,8 @@ describe('file Nodes', function() { },wait); n1.receive({payload:""}); }); + delete RED.settings.fileNodeAllowList; + delete RED.settings.fileNodeBlockList; }); });