UNPKG
lambda-event-mock
Version:
beta (2.0.0-beta1)
latest (1.5.0)
2.0.0-beta1
1.5.0
0.1.0
Mocks AWS Lambda events
github.com/vandium-io/lambda-event-mock
vandium-io/lambda-event-mock
lambda-event-mock
/
lib
/
simple.js
16 lines
(9 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
const
EventMock
=
require
(
'./event'
);
const
templates =
require
(
'./templates'
);
class
SimpleEventMock
extends
EventMock
{
constructor
(
templateName
) {
super
( templates[ templateName ] ); } }
module
.
exports
=
SimpleEventMock
;