* Gets a function wrapping the body of a Jasmine `describe` block to execute in a * synchronous-only zone.
(description: string, describeBody: Function)
| 171 | * synchronous-only zone. |
| 172 | */ |
| 173 | function wrapDescribeInZone(description: string, describeBody: Function): Function { |
| 174 | return function (this: unknown) { |
| 175 | // Create a synchronous-only zone in which to run `describe` blocks in order to raise an |
| 176 | // error if any asynchronous operations are attempted inside of a `describe`. |
| 177 | const syncZone = ambientZone.fork(new SyncTestZoneSpec(`jasmine.describe#${description}`)); |
| 178 | return syncZone.run(describeBody, this, arguments as any as any[]); |
| 179 | }; |
| 180 | } |
| 181 | |
| 182 | function runInTestZone( |
| 183 | testBody: Function, |
no test coverage detected
searching dependent graphs…