aboutsummaryrefslogtreecommitdiffstats
path: root/src/Injector.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Injector.js')
-rw-r--r--src/Injector.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Injector.js b/src/Injector.js
index cebc6eed..849ef3b9 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -75,7 +75,7 @@ function inferInjectionArgs(fn) {
* <pre>
* var $injector = angular.injector();
* expect($injector.get('$injector')).toBe($injector);
- * expect($injector.invoke(null, function($injector){
+ * expect($injector.invoke(function($injector){
* return $injector;
* }).toBe($injector);
* </pre>
@@ -182,7 +182,7 @@ function inferInjectionArgs(fn) {
*
* describe('Greeter', function(){
*
- * beforeEach(inject(function($provide) {
+ * beforeEach(module(function($provide) {
* $provide.service('greet', GreetProvider);
* });
*
@@ -190,13 +190,13 @@ function inferInjectionArgs(fn) {
* expect(greet('angular')).toEqual('Hello angular!');
* }));
*
- * it('should allow configuration of salutation', inject(
- * function(greetProvider) {
+ * it('should allow configuration of salutation', function() {
+ * module(function(greetProvider) {
* greetProvider.salutation('Ahoj');
- * },
- * function(greet) {
+ * });
+ * inject(function(greet) {
* expect(greet('angular')).toEqual('Ahoj angular!');
- * }
+ * });
* )};
*
* });