UNPKG

@angular/upgrade

Version:

Angular - the library for easing update from v1 to v2

36 lines 2.81 kB
/** * @license Angular v11.2.4 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/core/testing")):"function"==typeof define&&define.amd?define("@angular/upgrade/static/testing",["exports","@angular/core","@angular/core/testing"],t):t(((e=e||self).ng=e.ng||{},e.ng.upgrade=e.ng.upgrade||{},e.ng.upgrade.static=e.ng.upgrade.static||{},e.ng.upgrade.static.testing={}),e.ng.core,e.ng.core.testing)}(this,(function(e,t,n){"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function r(){throw new Error("AngularJS v1.x is not loaded!")}var a=function(){return r()};a.cleanData=r;var o={bootstrap:r,module:r,element:a,injector:r,version:void 0,resumeBootstrap:r,getTestability:r};try{window.hasOwnProperty("angular")&&(o=window.angular)}catch(e){}var u,g,i=function(e,t){return o.module(e,t)},c=null;(g=function g(e){u=e}).decorators=[{type:t.NgModule,args:[{providers:[{provide:"$injector",useFactory:function s(){return c}}]}]}],g.ctorParameters=function(){return[{type:t.Injector}]}, /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ e.createAngularJSTestingModule= /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function d(e){return i("$$angularJSTestingModule",[]).constant("$$angularUpgradeAppType",2).factory("$$angularInjector",["$injector",function(r){return n.TestBed.configureTestingModule({imports:e,providers:[{provide:"$injector",useValue:r}]}),n.TestBed.inject(t.Injector)}]).name},e.createAngularTestingModule=function l(e,t){return i("$$angularJSTestingModule",e).constant("$$angularUpgradeAppType",2).factory("$$angularInjector",(function(){return u})),c=function(e,t){return o.injector(["ng","$$angularJSTestingModule"],t)}(0,t),g},e.ɵangular_packages_upgrade_static_testing_testing_a=i,e.ɵangular_packages_upgrade_static_testing_testing_b="$$angularUpgradeAppType",e.ɵangular_packages_upgrade_static_testing_testing_d="$$angularInjector",Object.defineProperty(e,"__esModule",{value:!0})}));