it("isNotEmpty", () => { let value = { a: "1" }; chai.assert.isTrue(Assertions.isNotEmpty(value, false), `${JSON.stringify(value)} must be valid`); value = {}; chai.assert.isFalse(Assertions.isNotEmpty(value, false), `${JSON.stringify(value)} must be invalid`); chai.assert.throws(() => { Assertions.isNotEmpty(value, true); }, "Given argument is empty or null !", undefined, "If it is empty must throw exception"); });
chai.assert.throws(() => { Assertions.isNotEmpty(value, true); }, "Given argument is empty or null !", undefined,