MCPcopy Create free account
hub / github.com/angular/angular / asyncTest

Function asyncTest

packages/zone.js/test/browser/browser.spec.ts:3691–3704  ·  view source on GitHub ↗
(testFn: Function)

Source from the content-addressed store, hash-verified

3689 xdescribe('unhandled promise rejection', () => {
3690 const AsyncTestZoneSpec = (Zone as any)['AsyncTestZoneSpec'];
3691 const asyncTest = function (testFn: Function) {
3692 return (done: Function) => {
3693 let asyncTestZone: Zone = Zone.current.fork(
3694 new AsyncTestZoneSpec(
3695 done,
3696 (error: Error) => {
3697 fail(error);
3698 },
3699 'asyncTest',
3700 ),
3701 );
3702 asyncTestZone.run(testFn);
3703 };
3704 };
3705
3706 it(
3707 'should support window.addEventListener(unhandledrejection)',

Callers 2

browser.spec.tsFile · 0.70
wrapAsyncTestFunction · 0.50

Calls 2

forkMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected