Skip to content

Commit

Permalink
fixup! feat(platform-server): update domino to v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CaerusKaru committed Sep 19, 2018
1 parent 23f9b2c commit 5bec558
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ describe('elements', () => {
}

const comp = renderComponent(MyComponent);
expect(toHtml(comp)).toEqual('<div class=""></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);
Expand Down

0 comments on commit 5bec558

Please sign in to comment.