mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-25 02:40:24 +00:00
20 lines
458 B
JavaScript
20 lines
458 B
JavaScript
var scenario, runner, log, $scenario, Describe, It, body;
|
|
|
|
function logger(text) {
|
|
return function(done){
|
|
log += text;
|
|
(done||noop)();
|
|
};
|
|
}
|
|
|
|
function setUpContext() {
|
|
scenario = {};
|
|
runner = new angular.scenario.Runner(scenario, _jQuery);
|
|
$scenario = scenario.$scenario;
|
|
Describe = scenario.describe;
|
|
BeforeEach = scenario.beforeEach;
|
|
AfterEach = scenario.afterEach;
|
|
It = scenario.it;
|
|
log = '';
|
|
body = _jQuery('<div></div>');
|
|
}
|