diff options
| author | Misko Hevery | 2011-11-01 14:27:22 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-11-14 16:39:32 -0800 |
| commit | 4c10d33eb4340d6df30e298d63f4d37c25aab65f (patch) | |
| tree | f95967cb8fcba70ad1c6a55d0e2919f8468270e2 /test | |
| parent | 9062996a0e6b449467f5b8ec06824086ca87f9cf (diff) | |
| download | angular.js-4c10d33eb4340d6df30e298d63f4d37c25aab65f.tar.bz2 | |
refactor(api): cleaned up the externalization of angular API methods
Diffstat (limited to 'test')
| -rw-r--r-- | test/testabilityPatch.js | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 154db7d0..b5949623 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -46,7 +46,9 @@ function dumpScope(scope, offset) { return log.join('\n' + offset); } +publishExternalAPI(angular) beforeEach(function() { + publishExternalAPI(angular) // This is to reset parsers global cache of expressions. compileCache = {}; @@ -80,7 +82,6 @@ beforeEach(function() { $logMock.info.logs = []; $logMock.error.logs = []; - resetAngularPublic() }); function inject(){ @@ -118,34 +119,6 @@ function inject(){ }; } -/** - * This method republishes the public angular API. It should probably be cleaned up somehow. - * //TODO: remove this method and merge it with the angularPublic.js class - */ -function resetAngularPublic() { - extend(angular, { - 'element': jqLite, - 'copy': copy, - 'extend': extend, - 'equals': equals, - 'forEach': forEach, - 'noop': noop, - 'bind': bind, - 'toJson': toJson, - 'fromJson': fromJson, - 'identity':identity, - 'injector': createInjector, - 'isUndefined': isUndefined, - 'isDefined': isDefined, - 'isString': isString, - 'isFunction': isFunction, - 'isObject': isObject, - 'isNumber': isNumber, - 'isArray': isArray - }); -} - -resetAngularPublic(); afterEach(inject(function($rootScope) { // release the injector |
