Web Apps

Mocking Objects with Sinon JS

When Foo has the functions of our ClassToTest, Sinon is happy. When we create a Foo, the ClassToTest initialize does not run, which makes our tests happy.