Skip to content

Commit

Permalink
fix: check size range to allow for OS differences
Browse files Browse the repository at this point in the history
  • Loading branch information
shetzel committed Aug 27, 2024
1 parent 9361345 commit c334ee9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/nuts/deploy/verbose.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Deploy --verbose', () => {
}
).jsonOutput;

expect(cmdJson?.result.zipSize).to.equal(1776);
expect(cmdJson?.result.zipSize).to.be.within(1775, 1795);
expect(cmdJson?.result.zipFileCount).to.equal(5);
});

Expand All @@ -45,7 +45,7 @@ describe('Deploy --verbose', () => {
}
).shellOutput;

expect(shellOutput.stdout).to.contain('Deploy size: 1.73 KB of ~39 MB limit');
expect(shellOutput.stdout).to.contain('Deploy size: ').and.contain('KB of ~39 MB limit');
expect(shellOutput.stdout).to.contain('Deployed files count: 5 of 10,000 limit');
});

Expand All @@ -57,7 +57,7 @@ describe('Deploy --verbose', () => {
}
).jsonOutput;

expect(cmdJson?.result.zipSize).to.equal(1776);
expect(cmdJson?.result.zipSize).to.be.within(1775, 1795);
expect(cmdJson?.result.zipFileCount).to.equal(5);
});

Expand All @@ -69,7 +69,7 @@ describe('Deploy --verbose', () => {
}
).shellOutput;

expect(shellOutput.stdout).to.contain('Deploy size: 1.73 KB of ~39 MB limit');
expect(shellOutput.stdout).to.contain('Deploy size: ').and.contain('KB of ~39 MB limit');
expect(shellOutput.stdout).to.contain('Deployed files count: 5 of 10,000 limit');
});
});

0 comments on commit c334ee9

Please sign in to comment.