Skip to content

Commit

Permalink
feat: deprecate change and changeInput in favor of rerender (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Knauf authored Feb 23, 2023
1 parent 2006502 commit dc4c22f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
>,
) => Promise<void>;
/**
* @deprecated
* Use rerender instead. For more info see {@link https://github.com/testing-library/angular-testing-library/issues/365 GitHub Issue}
*
* @description
* Keeps the current fixture intact and invokes ngOnChanges with the updated properties.
*/
change: (changedProperties: Partial<ComponentType>) => void;
/**
* @deprecated
* Use rerender instead. For more info see {@link https://github.com/testing-library/angular-testing-library/issues/365 GitHub Issue}
*
* @description
* Keeps the current fixture intact, update the @Input properties and invoke ngOnChanges with the updated properties.
*/
Expand Down

0 comments on commit dc4c22f

Please sign in to comment.