From 68c2c760ed7b1942665805fe12df341b2a1cea0d Mon Sep 17 00:00:00 2001 From: Matthew Hill Date: Wed, 15 Jul 2015 15:56:38 +0100 Subject: [PATCH] docs(angular-mocks): Clarifies angular.mock.module comment IMO this is more accurate. --- src/ngMock/angular-mocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index e5de17c2d4f8..462e0bc591cf 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -2237,8 +2237,8 @@ if (window.jasmine || window.mocha) { * @param {...(string|Function|Object)} fns any number of modules which are represented as string * aliases or as anonymous module initialization functions. The modules are used to * configure the injector. The 'ng' and 'ngMock' modules are automatically loaded. If an - * object literal is passed they will be registered as values in the module, the key being - * the module name and the value being what is returned. + * object literal is passed each key-value pair will be registered on the module via {@link auto.$provide $provide}.value, the key being + * the string name (or token) to associate with the value on the injector. */ window.module = angular.mock.module = function() { var moduleFns = Array.prototype.slice.call(arguments, 0);