From fce43b4e1d093cacd8ef572cf4305e0df0c19b19 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Sat, 5 Nov 2022 14:50:14 +0900 Subject: [PATCH] fix condition for platform check --- test/nodes/core/storage/23-watch_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nodes/core/storage/23-watch_spec.js b/test/nodes/core/storage/23-watch_spec.js index 1e10d0e2e..dd7b94037 100644 --- a/test/nodes/core/storage/23-watch_spec.js +++ b/test/nodes/core/storage/23-watch_spec.js @@ -92,7 +92,7 @@ describe('watch Node', function() { msg.should.have.property('payload', result.payload); msg.should.have.property('type', result.type); if('size' in result) { - if (!((arch != "arm64") && (platform !== "darwin"))) { + if (!((arch === "arm64") && (platform === "darwin"))) { // On OSX/ARM, two change events occur and first event do not reflect file size change. So ignore size field in the case. msg.should.have.property('size', result.size); }