Created
March 5, 2013 19:35
-
-
Save eduardolundgren/5093454 to your computer and use it in GitHub Desktop.
This file contains 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 getContent(json) { | |
return '<div>' + json.html + '</div>'; | |
} | |
// roda a funcao atual | |
getContent({ | |
html: 'dummy' | |
}); | |
// Assumindo que o codigo atual eh o correto, essa funcao retorna: '<div>dummy</div>' | |
// No teu test tu ia fazer: | |
assert( getContent({ html: 'dummy' }), '<div>dummy</div>' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment