aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/TestContext.js
blob: 7a7b41e43aef44ab73b0b277166d51d967a12217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>');
}