From 72ecbaa0c98c080e7f06029ad25d8552c8a80d7e Mon Sep 17 00:00:00 2001 From: Oleksandr Mazepa Date: Thu, 4 Jan 2024 17:15:56 +0200 Subject: [PATCH] fix: Update condition in tests --- test/formDataBuilder.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/formDataBuilder.test.ts b/test/formDataBuilder.test.ts index f1f574a7..87b6b92e 100644 --- a/test/formDataBuilder.test.ts +++ b/test/formDataBuilder.test.ts @@ -50,7 +50,7 @@ describe('FormDataBuilder', function () { }); }); - if (Blob || global.FormData) { + if (Blob && global.FormData) { describe('createFormData (Browser FormData + Blob)', async () => { before(function () { builder = new FormDataBuilder(global.FormData as InputFormData); @@ -107,6 +107,6 @@ describe('FormDataBuilder', function () { }); } else { // eslint-disable-next-line no-console - console.warn('global.FormData does not exist. Skipping the FormData + Blob test'); + console.warn('global.FormData does not exist. Skipping the FormData + Buffer test'); } });