MCPcopy Index your code
hub / github.com/angular/angular / wrapTestInZone

Function wrapTestInZone

packages/zone.js/lib/mocha/mocha.ts:85–99  ·  view source on GitHub ↗
(args: IArguments)

Source from the content-addressed store, hash-verified

83 }
84
85 function wrapTestInZone(args: IArguments): any[] {
86 const asyncTest = function (fn: Function) {
87 return function (this: unknown, done: Function) {
88 return testZone!.run(fn, this, [done]);
89 };
90 };
91
92 const syncTest: any = function (fn: Function) {
93 return function (this: unknown) {
94 return testZone!.run(fn, this);
95 };
96 };
97
98 return modifyArguments(args, syncTest, asyncTest);
99 }
100
101 function wrapSuiteInZone(args: IArguments): any[] {
102 const asyncTest = function (fn: Function) {

Callers 1

patchMochaFunction · 0.70

Calls 1

modifyArgumentsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…