mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-14 16:38:30 +02:00
use to.not.be.empty
This commit is contained in:
@ -350,12 +350,7 @@ class AssertRuntime {
|
|||||||
expect(lhs).to.be.empty;
|
expect(lhs).to.be.empty;
|
||||||
break;
|
break;
|
||||||
case 'isNotEmpty':
|
case 'isNotEmpty':
|
||||||
expect(lhs).to.not.be.oneOf([null, 0, false, '', []]);
|
expect(lhs).to.not.be.empty;
|
||||||
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);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'isNull':
|
case 'isNull':
|
||||||
expect(lhs).to.be.null;
|
expect(lhs).to.be.null;
|
||||||
|
Reference in New Issue
Block a user