Skip to content

Commit

Permalink
fix: trim innerText that was getting a new line from a div
Browse files Browse the repository at this point in the history
  • Loading branch information
ike18t committed Nov 1, 2018
1 parent 9cee247 commit f883ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock-component/mock-component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe('MockComponent', () => {
// looking for 1st templateRef.
const block1 = templateOutlet.query(By.css('[data-key="block1"]'));
expect(block1).toBeTruthy();
expect(block1.nativeElement.innerText).toEqual('block 1 body');
expect(block1.nativeElement.innerText.trim()).toEqual('block 1 body');

// looking for 2nd templateRef.
const block2 = templateOutlet.query(By.css('[data-key="block2"]'));
Expand Down

0 comments on commit f883ad0

Please sign in to comment.