Credit to devdocs.io

sinon 3

sinon / Migrating to v2.0