0.1.1 • Published 12 years ago
mockit v0.1.1
Mockit
Mockit is a simple library for mocking module dependencies during testing.
Installation
$ npm install mockit
Usage
To mock the http module in a required file:
var mockHttp = {
// Mocked methods here...
};
var Downloader = mockit('../lib/downloader', {
http: mockHttp
});