how to chain expect in jest code example
Example: how to chain expect in jest
// install jest-chain... see source link below
it('add 1 and 1', () => {
expect(1 + 1)
.toBe(2)
.toBeGreaterThan(1)
.toBeLessThan(3);
});
// install jest-chain... see source link below
it('add 1 and 1', () => {
expect(1 + 1)
.toBe(2)
.toBeGreaterThan(1)
.toBeLessThan(3);
});