fix condition for platform check

This commit is contained in:
Hiroyasu Nishiyama 2022-11-05 14:50:14 +09:00
parent 1d547500e8
commit fce43b4e1d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}