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

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