Skipping Specs and Suites
xdescribe("A spec", function() {
it("was just skipped, so I will never execute", function() {
coldbox = 0;
coldbox++;
expect( coldbox ).toBe( 1 );
});
});
describe("A spec", function() {
it("is just a closure, so it can contain any code", function() {
coldbox = 0;
coldbox++;
expect( coldbox ).toBe( 1 );
});
xit("can have more than one expectation, but I am skipped", function() {
coldbox = 0;
coldbox++;
expect( coldbox ).toBe( 1 );
expect( coldbox ).toBeTrue();
});
});Skip Argument
Last updated
Was this helpful?