Mocking and Stubbing

Mocking and Stubbing

Hi, I mean when writing tests in some time you will need some mocking and stubbing for tests. I searched for a mock and stub things for QUnit and can't found it, so, I developed one:  http://github.com/bitzesty/qunit-mock

It supports simple mocking (expect a number of calls in a function) and stubbing. It automatic removes all mocking and stubbing after current tests (to archive this I need to make some around functions on window.test and window.asyncTest methods), it supports mocking async. For future I want to support expected arguments on mocking too.

Please take a look and comment what you think about, and if you core guys like, will be good to have a link for this project on QUnit doc page (with other reference links) :)

Thanks for your attention.