mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
test: Configure plain 'function' fixture
This commit is contained in:
parent
a0a43a68f3
commit
d43af5d3ea
7
tests/fixtures/function/index.js
vendored
Normal file
7
tests/fixtures/function/index.js
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
module.exports.handler = (event, context, callback) =>
|
||||
callback(null, {
|
||||
statusCode: 200,
|
||||
body: JSON.stringify({}),
|
||||
});
|
||||
9
tests/fixtures/function/serverless.yml
vendored
Normal file
9
tests/fixtures/function/serverless.yml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
service: service
|
||||
provider:
|
||||
name: aws
|
||||
|
||||
functions:
|
||||
foo:
|
||||
handler: index.handler
|
||||
other:
|
||||
handler: index.handler
|
||||
Loading…
x
Reference in New Issue
Block a user