examples/requirejs/scripts/it.js
function _suite(description, cb) {
            var test = new this(description, {});
            var it = test._addAction;
            _(["suite", "test", "timeout", "getAction", "beforeAll", "beforeEach",
                "afterAll", "afterEach", "context", "get", "set", "skip"]).forEach(function (key) {
                    it[key] = test[key];
                });
            cb(test);
            return test;
        }
function _suite(description, cb) {
            var test = new this(description, {});
            var it = test._addAction;
            _(["suite", "test", "timeout", "getAction", "beforeAll", "beforeEach",
                "afterAll", "afterEach", "context", "get", "set", "skip"]).forEach(function (key) {
                    it[key] = test[key];
                });
            cb(test);
            return test;
        }
function _suite ( description , cb ) { var test = new this ( description , { } ) ; var it = test . _addAction ; _ ( [ "suite" , "test" , "timeout" , "getAction" , "beforeAll" , "beforeEach" , "afterAll" , "afterEach" , "context" , "get" , "set" , "skip" ] ) . forEach ( function ( key ) { it [ key ] = test [ key ] ; } ) ; cb ( test ) ; return test ; }
Creates a test with it.
@param {String} description the description of the test.
@param {Function} [cb] the function to invoke in the scope of the test. The it suite is passed as the first argument.
@return {it.Suite} the test.
Creates a test with it .