From 024f61a95e3f977964f0e1780d766ab19117ebdf Mon Sep 17 00:00:00 2001 From: Oleksii Slabchenko Date: Sat, 7 Oct 2023 22:42:13 +0200 Subject: [PATCH] Fix 'between' assertion --- packages/bruno-js/src/runtime/assert-runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-js/src/runtime/assert-runtime.js b/packages/bruno-js/src/runtime/assert-runtime.js index f0f84fbc..a9588263 100644 --- a/packages/bruno-js/src/runtime/assert-runtime.js +++ b/packages/bruno-js/src/runtime/assert-runtime.js @@ -268,7 +268,7 @@ class AssertRuntime { expect(lhs).to.endWith(rhs); break; case 'between': - const [min, max] = value.split(','); + const [min, max] = rhs; expect(lhs).to.be.within(min, max); break; case 'isEmpty':