aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/TestContext.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/scenario/TestContext.js')
-rw-r--r--test/scenario/TestContext.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/scenario/TestContext.js b/test/scenario/TestContext.js
index 2081479e..7a7b41e4 100644
--- a/test/scenario/TestContext.js
+++ b/test/scenario/TestContext.js
@@ -1,20 +1,20 @@
-//var scenario, runner, log, Describe, It, $scenario, body;
-//
-//function logger(text) {
-// return function(done){
-// log += text;
-// (done||noop)();
-// };
-//}
-//
-//function beforeEach() {
-// log = '';
-// scenario = {};
-// body = _jQuery('<div></div>');
-// runner = new angular.scenario.Runner(scenario, _jQuery);
-// Describe = scenario.describe;
-// BeforeEach = scenario.beforeEach;
-// AfterEach = scenario.afterEach;
-// It = scenario.it;
-// $scenario = scenario.$scenario;
-//}
+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>');
+}