From 3074f0e4364ac55c3a97d0ad1feb71d07441c374 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Wed, 28 Nov 2018 12:44:29 +0100 Subject: [PATCH] test(ivy): update root causes for @angular/common TestBed failures (#27322) PR Close #27322 --- .../directives/ng_component_outlet_spec.ts | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/common/test/directives/ng_component_outlet_spec.ts b/packages/common/test/directives/ng_component_outlet_spec.ts index 7f0b2fc08a..1a0ce54240 100644 --- a/packages/common/test/directives/ng_component_outlet_spec.ts +++ b/packages/common/test/directives/ng_component_outlet_spec.ts @@ -91,22 +91,21 @@ describe('insert/remove', () => { expect(fixture.nativeElement).toHaveText('bar'); })); - fixmeIvy('FW-642: ASSERTION ERROR: Slot should have been initialized to NO_CHANGE') && - it('should use the injector, if one supplied', async(() => { - let fixture = TestBed.createComponent(TestComponent); + it('should use the injector, if one supplied', async(() => { + let fixture = TestBed.createComponent(TestComponent); - const uniqueValue = {}; - fixture.componentInstance.currentComponent = InjectedComponent; - fixture.componentInstance.injector = Injector.create( - [{provide: TEST_TOKEN, useValue: uniqueValue}], fixture.componentRef.injector); + const uniqueValue = {}; + fixture.componentInstance.currentComponent = InjectedComponent; + fixture.componentInstance.injector = Injector.create( + [{provide: TEST_TOKEN, useValue: uniqueValue}], fixture.componentRef.injector); - fixture.detectChanges(); - let cmpRef: ComponentRef = fixture.componentInstance.cmpRef !; - expect(cmpRef).toBeAnInstanceOf(ComponentRef); - expect(cmpRef.instance).toBeAnInstanceOf(InjectedComponent); - expect(cmpRef.instance.testToken).toBe(uniqueValue); + fixture.detectChanges(); + let cmpRef: ComponentRef = fixture.componentInstance.cmpRef !; + expect(cmpRef).toBeAnInstanceOf(ComponentRef); + expect(cmpRef.instance).toBeAnInstanceOf(InjectedComponent); + expect(cmpRef.instance.testToken).toBe(uniqueValue); - })); + })); it('should resolve a with injector', async(() => { let fixture = TestBed.createComponent(TestComponent);