Skip to content

Commit

Permalink
test: Better condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Dec 14, 2024
1 parent 28b1419 commit 82495d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('dist files', () => {
expect(file.type).toBe(type); // TODO: Keep this? Type seems to be resolved from the file extension, not the file data.
});

if (minBytes != null && maxBytes != null) {
if (minBytes !== undefined && maxBytes !== undefined) {
test('is within expected file size limits', () => {
expect.assertions(2);
expect(file.size).toBeGreaterThan(minBytes);
Expand Down

0 comments on commit 82495d5

Please sign in to comment.