mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix e2e runner tests
This commit is contained in:
parent
1d7adac7a5
commit
8e6ecd98ae
1 changed files with 10 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue