fix(ivy): properly insert views in front of views with an empty element container (#33647)

PR Close #33647
This commit is contained in:
Pawel Kozlowski
2019-11-07 10:55:59 +01:00
committed by Kara Erickson
parent fc24a69a6b
commit 0b998844c8
2 changed files with 11 additions and 1 deletions

View File

@ -327,6 +327,11 @@ describe('view insertion', () => {
.toBe('insert|before');
});
it('should insert before a view with the empty ng-container as the first root node', () => {
expect(createAndInsertViews(`<ng-container></ng-container>|before`).textContent)
.toBe('insert|before');
});
it('should insert before a view with ICU container inside a ng-container as the first root node',
() => {
expect(