From 063ae9c3aa3d486519870cc0e81fd5ca7fde2c8f Mon Sep 17 00:00:00 2001 From: Max Milton Date: Sun, 15 Dec 2024 00:04:48 +0900 Subject: [PATCH] test: Better condition check --- test/unit/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/index.test.ts b/test/unit/index.test.ts index 12871f86..6621dbe6 100644 --- a/test/unit/index.test.ts +++ b/test/unit/index.test.ts @@ -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);