diff --git a/packages/platform-browser/test/browser/bootstrap_spec.ts b/packages/platform-browser/test/browser/bootstrap_spec.ts index e8ae8b2b0bb..a8e2d1a0b64 100644 --- a/packages/platform-browser/test/browser/bootstrap_spec.ts +++ b/packages/platform-browser/test/browser/bootstrap_spec.ts @@ -272,9 +272,10 @@ function bootstrap( }); } - it('should create an injector promise', () => { + it('should create an injector promise', async () => { const refPromise = bootstrap(HelloRootCmp, testProviders); expect(refPromise).toEqual(jasmine.any(Promise)); + await refPromise; // complete component initialization before switching to the next test }); it('should set platform name to browser', done => {