* Invokes an update block function, which can either be provided during * the `ViewFixture` initialization or as an argument. * * @param updateFn An update block function to invoke.
(updateFn?: () => void)
| 191 | * @param updateFn An update block function to invoke. |
| 192 | */ |
| 193 | update(updateFn?: () => void) { |
| 194 | updateFn ||= this.updateFn; |
| 195 | if (!updateFn) { |
| 196 | throw new Error( |
| 197 | 'The `ViewFixture.update` was invoked, but there was no `update` function ' + |
| 198 | 'provided during the `ViewFixture` instantiation or specified as an argument ' + |
| 199 | 'in this call.', |
| 200 | ); |
| 201 | } |
| 202 | refreshView(this.tView, this.lView, updateFn, this.context); |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * If you use `ViewFixture` and `enter()`, please add `afterEach(ViewFixture.cleanup);` to ensure |
nothing calls this directly
no test coverage detected