Fix 'between' assertion

This commit is contained in:
Oleksii Slabchenko 2023-10-07 22:42:13 +02:00
parent 856236c918
commit 024f61a95e

View File

@ -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':