0.2.0 • Published 6 years ago

aws-sinon-mock v0.2.0

Weekly downloads
10
License
ISC
Repository
github
Last release
6 years ago

aws-sinon-mock

Usage

const AWS = require('aws-sdk'); const AWSMock = require('aws-sinon-mock');

const awsmock = new AWSMock({ AWS, });

const mod = require('./module-to-test');

awsmock.stub('SQS', 'receiveMessage').callsFake((params, cb) => { console.log('params', params); cb(null, { Messages: [], }); });

mod.getMessage();