Runs this group of tests, only if condition
is true.
This is the opposite of describe.skipIf()
.
method
Describes a group of related tests.
function sum(a, b) {
return a + b;
}
describe("sum()", () => {
test("can sum two values", () => {
expect(sum(1, 1)).toBe(2);
});
});