Created
February 20, 2020 02:26
-
-
Save Farenheith/75e2a0372fb3e0284bc99049ba5e8a3b to your computer and use it in GitHub Desktop.
Example of untestable code made testable
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 { nowTestableOldFunction } from './untestable-wrapper'; | |
| export function doSomethingUntestable() { | |
| return nowTestableOldFunction(123); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment