You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-16
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,9 @@ The second parameter in `createComponent` is the `options` parameter, which look
86
86
87
87
`schemas`: passed to the `TestBed`
88
88
89
-
The `createComponent` function returns an object consisting all of the query functions from [dom-testing-library][dom-testing-library] and adds the following properties:
89
+
The `createComponent` function returns an object consisting all of the query functions from [dom-testing-library][dom-testing-library], all the event functions exposed from `fireEvent`, and adds the following properties:
90
+
91
+
> Every event runs `detectChanges` on the fixture.
90
92
91
93
#### `container: HTMLElement`
92
94
@@ -98,10 +100,6 @@ All of the [dom-testing-library][dom-testing-library] query functions are binded
Exposes the `fireEvent` from [dom-testing-library](dom-testing-library).
116
-
117
-
```ts
118
-
import { fireEvent } from'ngx-testing-library';
119
-
120
-
fireEvent.click(buttonNode);
121
-
```
122
-
123
111
## Usage
124
112
125
113
You can find some examples in the [tests folder](https://github.com/tdeschryver/ngx-testing-library/tree/master/projects/ngx-testing-library/tests).
@@ -161,7 +149,7 @@ import { AppComponent } from './app.component';
0 commit comments