Created
February 20, 2020 02:30
-
-
Save Farenheith/ac7c5ce858ff15eaf2727937ccac5ad9 to your computer and use it in GitHub Desktop.
Example of wrapper to a untestable class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UntestableClass from 'untestable-class'; | |
export interface NowTestableClassType { | |
someMethod(p: number): string; | |
} | |
export const NowTestableClass = UntestableClass as new (constructorParam: string) => NowTestableClassType; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment