"use strict"; /** * @license Angular v12.0.0-next.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @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 */Zone.__load_patch("mocha",(t,e)=>{const n=t.Mocha;if(void 0===n)return;if(void 0===e)throw new Error("Missing Zone.js");const r=e.ProxyZoneSpec,i=e.SyncTestZoneSpec;if(!r)throw new Error("Missing ProxyZoneSpec");if(n.__zone_patch__)throw new Error('"Mocha" has already been patched with "Zone".');n.__zone_patch__=!0;const o=e.current,c=o.fork(new i("Mocha.describe"));let u=null;const s=o.fork(new r),f={after:n.after,afterEach:n.afterEach,before:n.before,beforeEach:n.beforeEach,describe:n.describe,it:n.it};function a(t,e,n){for(let r=0;r{y.call(this,t)})},n.Runner.prototype.run=function(t){return this.on("test",t=>{u=o.fork(new r)}),this.on("fail",(t,e)=>{const n=u&&u.get("ProxyZoneSpec");if(n&&e)try{e.message+=n.getAndClearPendingTasksInfo()}catch(t){}}),b.call(this,t)}});