MCPcopy
hub / github.com/angular/angular / asyncTest

Function asyncTest

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

Source from the content-addressed store, hash-verified

3622 xdescribe('unhandled promise rejection', () => {
3623 const AsyncTestZoneSpec = (Zone as any)['AsyncTestZoneSpec'];
3624 const asyncTest = function (testFn: Function) {
3625 return (done: Function) => {
3626 let asyncTestZone: Zone = Zone.current.fork(
3627 new AsyncTestZoneSpec(
3628 done,
3629 (error: Error) => {
3630 fail(error);
3631 },
3632 'asyncTest',
3633 ),
3634 );
3635 asyncTestZone.run(testFn);
3636 };
3637 };
3638
3639 it(
3640 '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

Used in the wild real call sites across dependent graphs

searching dependent graphs…