UNPKG

mongoose-data-seed

Version:

Seed mongodb with data using mongoose models

13 lines (8 loc) 270 B
import sinon from 'sinon'; const Installer = sinon.stub(); Installer.stubbedOvservable = { subscribe: sinon.stub(), toPromise: sinon.stub().resolves(), }; Installer.prototype.install = sinon.stub().returns(Installer.stubbedOvservable); export default Installer;