From 0cb02d906e828f57a1e7e0bdaa8f5a4ed7d9e625 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Tue, 12 Feb 2019 09:52:20 -0800 Subject: [PATCH] fix(ivy): mark query test as modified in Ivy (#28660) Due to the fact that host nodes no longer match in ContentChild queries in Ivy, we disable test that was enabled previously in other commit. PR Close #28660 --- .../test/linker/query_integration_spec.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/core/test/linker/query_integration_spec.ts b/packages/core/test/linker/query_integration_spec.ts index 63f6282875..e93faa1139 100644 --- a/packages/core/test/linker/query_integration_spec.ts +++ b/packages/core/test/linker/query_integration_spec.ts @@ -270,15 +270,18 @@ describe('Query API', () => { }); describe('read a different token', () => { - it('should contain all content children', () => { - const template = - '
'; - const view = createTestCmpAndDetectChanges(MyComp0, template); + modifiedInIvy('Host nodes no longer match in ContentChild queries in Ivy') + .it('should contain all content children', () => { + const template = + '
'; + const view = createTestCmpAndDetectChanges(MyComp0, template); - const comp: NeedsContentChildrenWithRead = - view.debugElement.children[0].injector.get(NeedsContentChildrenWithRead); - expect(comp.textDirChildren.map(textDirective => textDirective.text)).toEqual(['ca', 'cb']); - }); + const comp: NeedsContentChildrenWithRead = + view.debugElement.children[0].injector.get(NeedsContentChildrenWithRead); + expect(comp.textDirChildren.map(textDirective => textDirective.text)).toEqual([ + 'ca', 'cb' + ]); + }); it('should contain the first content child', () => { const template =