Skip to content

Commit cd3cd7d

Browse files
authored
Add an empty afterAll to the TestBed exmaple (NativeScript#1871)
This fixes JS: NSUTR: this.error: An error was thrown in afterAll JS: TypeError: Cannot read property 'origin' of undefined NativeScript / 29 (10; Android SDK built for x86) undefined at line undefined FAILED An error was thrown in afterAll TypeError: Cannot read property 'origin' of undefined at <Jasmine> at ZoneQueueRunner.push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.jasmine.js.jasmine.QueueRunner.ZoneQueueRunner.execute (file:///data/data/org.nativescript.firstapp/files/app/vendor.js:84532:42) at <Jasmine> NativeScript / 29 (10; Android SDK built for x86): Executed 1 of 1 (1 FAILED) (0.237 secs / 0 secs)
1 parent 9811af5 commit cd3cd7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/tooling/testing/testing.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export class ZonedRenderer {
177177
describe('Renderer E2E', () => {
178178
beforeEach(nsTestBedBeforeEach([ZonedRenderer]));
179179
afterEach(nsTestBedAfterEach(false));
180+
afterAll(() => {});
180181
181182
it('executes events inside NgZone when listen is called outside NgZone', async(() => {
182183
const eventName = 'someEvent';

0 commit comments

Comments
 (0)