Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Latest commit

 

History

History
25 lines (20 loc) · 642 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 642 Bytes

Supported Mock Events

  • SNS
  • S3 Put
  • DynamoDB
  • Config Chane
  • Config Periodic

Usage

// other suggested mocks
const AWS = require('aws-sdk-mock');
const context = require('aws-lambda-mock-context');

// mocks from this module
const mockSNSEvent = require('aws-mock-events').SNS;
const mockDDBEvent = require('aws-mock-events').DynamoDB;
const mockS3PutEvent = require('aws-mock-events').S3Put;
const ConfigChange = require('aws-mock-events').ConfigChange;
const ConfigPeriodic = require('aws-mock-events').ConfigPeriodic;

// modify the event to suite your tests
mockSNSEvent.Records[0].Sns.Message = 'testMessage';