aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/scenario/dslSpec.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/scenario/dslSpec.js b/test/scenario/dslSpec.js
index 71dfde3c..d714dc45 100644
--- a/test/scenario/dslSpec.js
+++ b/test/scenario/dslSpec.js
@@ -132,10 +132,16 @@ describe("angular.scenario.dsl", function() {
};
$window.angular.scope = function() {
return {
- $location: {
- hashSearch: {x: 2},
- hashPath: '/bar',
- search: {foo: 10}
+ $service: function(serviceId) {
+ if (serviceId == '$location') {
+ return {
+ hashSearch: {x: 2},
+ hashPath: '/bar',
+ search: {foo: 10}
+ }
+ } else {
+ throw new Error('unknown service id ' + serviceId);
+ }
}
};
};