From 5a9bda2a0fb5547aea8c46f54b6ac7afe9d5f87e Mon Sep 17 00:00:00 2001 From: lohit Date: Sun, 15 Dec 2024 17:27:47 +0530 Subject: [PATCH] use to.not.be.empty --- packages/bruno-js/src/runtime/assert-runtime.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/bruno-js/src/runtime/assert-runtime.js b/packages/bruno-js/src/runtime/assert-runtime.js index d62bd22bf..4132fea9c 100644 --- a/packages/bruno-js/src/runtime/assert-runtime.js +++ b/packages/bruno-js/src/runtime/assert-runtime.js @@ -350,12 +350,7 @@ class AssertRuntime { expect(lhs).to.be.empty; break; case 'isNotEmpty': - expect(lhs).to.not.be.oneOf([null, 0, false, '', []]); - if (Array.isArray(lhs)) { - expect(lhs).to.have.length.above(0); - } else if (typeof lhs === 'object' && lhs !== null) { - expect(Object.keys(lhs)).to.have.length.above(0); - } + expect(lhs).to.not.be.empty; break; case 'isNull': expect(lhs).to.be.null;