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

fix condition for platform check

This commit is contained in:
Hiroyasu Nishiyama 2022-11-05 14:50:14 +09:00
parent 1d547500e8
commit fce43b4e1d

View File

@ -92,7 +92,7 @@ describe('watch Node', function() {
msg.should.have.property('payload', result.payload); msg.should.have.property('payload', result.payload);
msg.should.have.property('type', result.type); msg.should.have.property('type', result.type);
if('size' in result) { 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. // 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); msg.should.have.property('size', result.size);
} }