Suite Groups
describe("A spec", function() {
it("is just a closure, so it can contain any code", function() {
coldbox = 0;
coldbox++;
expect( coldbox ).toBe( 1 );
});
it("can have more than one expectation", function() {
coldbox = 0;
coldbox++;
expect( coldbox ).toBe( 1 );
expect( coldbox ).toBeTrue();
});
});Nesting describe Blocks
Last updated
Was this helpful?