From de2a56bbc80387ba0fbbcb718c2d2f8a7afc0f69 Mon Sep 17 00:00:00 2001 From: Matthew Hill Date: Wed, 15 Jul 2015 15:56:38 +0100 Subject: [PATCH] docs(angular-mocks): clarify `angular.mock.module` usage with objects Closes #12354 --- src/ngMock/angular-mocks.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ngMock/angular-mocks.js b/src/ngMock/angular-mocks.js index 38456a4c903b..5e1522e42d3d 100644 --- a/src/ngMock/angular-mocks.js +++ b/src/ngMock/angular-mocks.js @@ -2271,8 +2271,9 @@ 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);