Skip to content

Commit 43191cf

Browse files
committed
fix: 🐛 document the exported logNgHTML function
1 parent 7a53370 commit 43191cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ In your test you can simply write the following line.
9393
console.logNgHTML(fixture.debugElement.query(By.css('mat-tab-body')));
9494
```
9595

96-
Which will print the following string to your console
96+
Which will print the following string to your console. Depending on your test configuration you
97+
might run into an issue with the patch of the console. In such cases its best to report an [issue](https://github.com/angular-extensions/pretty-html-log/issues) and use the `logNgHTML` function directly.
98+
99+
```typescript
100+
logNgHTML(fixture.debugElement.query(By.css('mat-tab-body')));
101+
```
97102

98103
![logNgHTML](https://raw.githubusercontent.com/angular-extensions/pretty-html-log/master/images/output.png)
99104

0 commit comments

Comments
 (0)