mockit
v0.1.1
Published
Simple module dependency mocking
Downloads
4
Readme
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
});