Skip to content

Commit

Permalink
fix: cache break of MockComponent
Browse files Browse the repository at this point in the history
closes #96
  • Loading branch information
satanTime committed Sep 30, 2020
1 parent e034dd7 commit 4b0ea25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/mock-component/mock-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ export function MockComponents(...components: Array<Type<any>>): Array<Type<Mock
return components.map(component => MockComponent(component, undefined));
}

/**
* @deprecated since version 10.0.0 and will be removed in 11.0.0
* feel free to open a github issue to discuss an alternative solution.
* https://github.com/ike18t/ng-mocks/issues
*/
export function MockComponent<TComponent>(
component: Type<TComponent>,
metaData: core.Directive
): Type<MockedComponent<TComponent>>;

export function MockComponent<TComponent>(
component: Type<TComponent>,
metaData?: core.Directive
Expand Down

0 comments on commit 4b0ea25

Please sign in to comment.