text: window.JasminePromiseMatchers=new function(){var n;this.install=function(){n=window.Promise,window.Promise=window.Promise||ES6Promise.Promise},this.uninstall=function(){window.Promise=n};var e={PENDING:"pending",REJECTED:"rejected",RESOLVED:"resolved"},t=function(n,e,t){void 0!==e&&(e.asymmetricMatch instanceof Function?e.asymmetricMatch(n)||t.fail("Expected "+n+" to contain "+e):n!==e&&t.fail("Expected "+n+" to be "+e))},i=function(n,e,t){n!==e&&t.fail("Expected "+n+" to be "+e)},o=function(n,o,r,c){return o.then(function(o){i(e.RESOLVED,r,n),t(o,c,n),n()},function(o){i(e.REJECTED,r,n),t(o,c,n),n()}),{pass:!0}};beforeEach(function(){jasmine.addMatchers({toBeRejected:function(){return{compare:function(n,t){return o(t,n,e.REJECTED)}}},toBeRejectedWith:function(){return{compare:function(n,t,i){return o(i,n,e.REJECTED,t)}}},toBeResolved:function(){return{compare:function(n,t){return o(t,n,e.RESOLVED)}}},toBeResolvedWith:function(){return{compare:function(n,t,i){return o(i,n,e.RESOLVED,t)}}}})})};