Merge pull request #457 from Sl-Alex/bugfix/between-assert

Fix 'between' assertion
This commit is contained in:
Anoop M D 2023-10-08 04:32:12 +05:30 committed by GitHub
commit c91bc0d1c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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