Created
April 15, 2018 22:23
-
-
Save martinsson/36cdfae7e3d9130770a0bb9eb5120ed7 to your computer and use it in GitHub Desktop.
Hidden testable code 2
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
function hardToTest() { | |
let data = callToDependency() | |
let result = easyToTestPureFunction(data) | |
let dataOther = callToDependency2(result) | |
} | |
function easyToTestPureFunction(data) { | |
// | |
// pure logic | |
// pure logic | |
// pure logic | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment