Skip to content

Instantly share code, notes, and snippets.

@FagnerMartinsBrack
Last active July 24, 2016 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FagnerMartinsBrack/d699b5806c8fb6ef1edfd05631bf9c45 to your computer and use it in GitHub Desktop.
Save FagnerMartinsBrack/d699b5806c8fb6ef1edfd05631bf9c45 to your computer and use it in GitHub Desktop.
(Medium) Mocking Can Lead To False Positives - Overriding Input
function addIndexToDatabase(index, databasePersist) {
// ... complexity ...
index = 5
// ... complexity ...
databasePersist(index);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment