From 82495d579f2efd3afc5e6290b78fac4bace1a4f3 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);