aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngScenario/output/Object.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ngScenario/output/Object.js')
-rw-r--r--src/ngScenario/output/Object.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ngScenario/output/Object.js b/src/ngScenario/output/Object.js
new file mode 100644
index 00000000..621b816f
--- /dev/null
+++ b/src/ngScenario/output/Object.js
@@ -0,0 +1,8 @@
+'use strict';
+
+/**
+ * Creates a global value $result with the result of the runner.
+ */
+angular.scenario.output('object', function(context, runner, model) {
+ runner.$window.$result = model.value;
+});