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

Function asyncTest

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

Source from the content-addressed store, hash-verified

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

Callers 2

browser.spec.tsFile · 0.70
wrapAsyncTestFunction · 0.50

Calls 3

failFunction · 0.85
forkMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected