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:
parent
1d547500e8
commit
fce43b4e1d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user