mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-27 19:50:23 +00:00
docs(guide/module): fix syntax error and expectation in test example
This commit is contained in:
parent
f04142ea28
commit
5c5b1183c8
1 changed files with 2 additions and 2 deletions
|
|
@ -232,7 +232,7 @@ describe('myApp', function() {
|
|||
$provide.value('$window', {
|
||||
alert: jasmine.createSpy('alert')
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
// The inject() will create the injector and inject the greet and
|
||||
// $window into the tests. The test need not concern itself with
|
||||
|
|
@ -251,7 +251,7 @@ describe('myApp', function() {
|
|||
});
|
||||
inject(function(greet) {
|
||||
greet('World');
|
||||
expect(alertSpy).toHaveBeenCalledWith('World');
|
||||
expect(alertSpy).toHaveBeenCalledWith('Hello World!');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue