Remove global module definition from angular-mocks

Because it conficts with commonjs.

See http://wiki.commonjs.org/wiki/Modules/1.1:

> In a module, there must be a free variable "module", that is an Object.

Also see the existing `module` declaration on:
27e02d6674/node/node.d.ts (L61)

Workaround is to use `angular.mock.module` instead of `module`.

Closes #2072
This commit is contained in:
Giovanni Bassi
2015-08-19 16:24:39 -03:00
parent bb45306d0f
commit 47b934362a
2 changed files with 9 additions and 8 deletions

View File

@@ -237,5 +237,6 @@ declare module angular {
///////////////////////////////////////////////////////////////////////////////
// functions attached to global object (window)
///////////////////////////////////////////////////////////////////////////////
declare var module: (...modules: any[]) => any;
//Use `angular.mock.module` instead of `module`, as `module` conflicts with commonjs.
//declare var module: (...modules: any[]) => any;
declare var inject: angular.IInjectStatic;