feat(platform-server): update domino to v2.1.0 (#25564)

PR Close #25564
This commit is contained in:
Adam Plumer
2018-08-18 15:58:55 -05:00
committed by Kara Erickson
parent 8f0fcc3f71
commit 3fb0da2de5
5 changed files with 11 additions and 7 deletions

View File

@ -309,7 +309,11 @@ describe('elements', () => {
}
const comp = renderComponent(MyComponent);
expect(toHtml(comp)).toEqual('<div></div>');
// This is a fix for a change in how Domino renders this on the server in v2.1.0
const source = toHtml(comp);
const matches = source === '<div></div>' || source === '<div class=""></div>';
expect(matches).toBeTruthy();
comp.someFlag = true;
$r3$.ɵdetectChanges(comp);