Skip to content

Commit

Permalink
fix: Update condition in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olexandr-mazepa committed Jan 4, 2024
1 parent b0e9ae0 commit 72ecbaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/formDataBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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');
}
});

0 comments on commit 72ecbaa

Please sign in to comment.