Credit to devdocs.io

sinon 2

sinon / Migrating to v2.0