Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(ngMock): Encapsulated ngMock in module wrapper #3376

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ module.exports = function(grunt) {
},
mocks: {
dest: 'build/angular-mocks.js',
src: ['src/ngMock/angular-mocks.js'],
strict: false
src: util.wrap(['src/ngMock/angular-mocks.js'], 'module')
},
sanitize: {
dest: 'build/angular-sanitize.js',
Expand Down
8 changes: 1 addition & 7 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/**
* @license AngularJS v"NG_VERSION_FULL"
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*
* TODO(vojta): wrap whole file into closure during build
*/
'use strict';

/**
* @ngdoc overview
Expand Down