diff --git a/docs/angular-testing-library/api.mdx b/docs/angular-testing-library/api.mdx index 9d328722d..06229c656 100644 --- a/docs/angular-testing-library/api.mdx +++ b/docs/angular-testing-library/api.mdx @@ -388,27 +388,6 @@ const {debug} = await render(AppComponent) debug() ``` -### `change` - -Change the input of the component. This calls `detectChanges` after the props -are updated. - -```typescript -const {change} = await render(Counter, { - componentProperties: {count: 4, name: 'Sarah'}, -}) - -expect(screen.getByTestId('count-value').textContent).toBe('4') -expect(screen.getByTestId('name-value').textContent).toBe('Sarah') - -change({count: 7}) - -// count updated to 7 -expect(screen.getByTestId('count-value').textContent).toBe('7') -// name keeps the same value -expect(screen.getByTestId('name-value').textContent).toBe('Sarah') -``` - ### `rerender` Create and render a new instance of the component. Input properties that are not @@ -422,7 +401,7 @@ const {rerender} = await render(Counter, { expect(screen.getByTestId('count-value').textContent).toBe('4') expect(screen.getByTestId('name-value').textContent).toBe('Sarah') -await rerender({count: 7}) +await rerender({componentProperties: {count: 7}}) // count updated to 7 expect(screen.getByTestId('count-value').textContent).toBe('7')