test: Configure plain 'function' fixture

This commit is contained in:
Mariusz Nowak 2020-05-12 16:42:08 +02:00
parent a0a43a68f3
commit d43af5d3ea
No known key found for this signature in database
GPG Key ID: B1FBDA8A182B03F2
2 changed files with 16 additions and 0 deletions

7
tests/fixtures/function/index.js vendored Normal file
View File

@ -0,0 +1,7 @@
'use strict';
module.exports.handler = (event, context, callback) =>
callback(null, {
statusCode: 200,
body: JSON.stringify({}),
});

View File

@ -0,0 +1,9 @@
service: service
provider:
name: aws
functions:
foo:
handler: index.handler
other:
handler: index.handler