toBeEven

Bun

Symbol

MatchersBuiltin.toBeEven

toBeEven(): void

Asserts that a number is even.

expect(2).toBeEven();
expect(1).not.toBeEven();