UNPKG

@anjuna/angular-core

Version:

<p align="center"> <img src="//cdn.zuora.com/theme/0.6.0/assets/anjuna/anjuna-logo.svg"/> <br/><br/> </p>

16 lines (14 loc) 3.25 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core/testing"),require("@angular/core")):"function"==typeof define&&define.amd?define("@anjuna/angular-core/testing",["exports","@angular/core/testing","@angular/core"],t):t(((e=e||self).anjuna=e.anjuna||{},e.anjuna["angular-core"]=e.anjuna["angular-core"]||{},e.anjuna["angular-core"].testing={}),e.ng.core.testing,e.ng.core)}(this,(function(e,t,n){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function r(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var o=function(e){void 0===e&&(e="text"),this.nativeElement=document.createElement("input"),this.nativeElement.setAttribute("type",e)};var c=this,i=function(){function e(e,t,n){this.message=e,this.context=t,this.header=n}return e.prototype.dismiss=function(){return new Promise((function(e){return e()}))},e}(),u=function(){},s=function(e,t){return new i(e,"danger",t)},a=function(e,t){return new i(e,"info",t)},f=function(e,t){return new i(e,"success",t)},l=function(e,t){return new i(e,"success",t)},p=function(){return new Promise((function(e){return e(c)}))},d=function(e,t){},g={dismissAll:u,error:s,message:a,success:f,warn:l,componentOnReady:p,addEventListener:d},m=function(){function e(){this.controller=t.createController()}var t;return t=e,e.createController=function(){return g},e.prototype.dismissAll=function(){this.controller.dismissAll()},e.prototype.error=function(e,t){return this.controller.error(e,t)},e.prototype.message=function(e,t){return this.controller.message(e,t)},e.prototype.success=function(e,t){return this.controller.success(e,t)},e.prototype.warn=function(e,t){return this.controller.warn(e,t)},e=t=function(e,t,n,r){var o,c=arguments.length,i=c<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(c<3?o(i):c>3?o(t,n,i):o(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i}([n.Injectable(),r("design:paramtypes",[])],e)}();e.FormControlMock=o,e.MockToast=i,e.MockToastService=m,e.advance=function(e,n){void 0===n&&(n=0),t.tick(n),e.detectChanges()},e.mockToastController=g,e.ɵ0=u,e.ɵ1=s,e.ɵ2=a,e.ɵ3=f,e.ɵ4=l,e.ɵ5=p,e.ɵ6=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=anjuna-angular-core-testing.umd.min.js.map