mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
21 lines
383 B
JavaScript
21 lines
383 B
JavaScript
var lambda_function = require('./lambda').lambda_function;
|
|
|
|
/**
|
|
* Create sample Context and Event data to test with
|
|
*/
|
|
|
|
var context_object = {
|
|
done: function(error, result) {
|
|
console.log("Your Lambda Function Response: ", error, result);
|
|
}
|
|
};
|
|
var event_object = {
|
|
a: 3,
|
|
b: 3
|
|
};
|
|
|
|
/**
|
|
* Run Lambda Function
|
|
*/
|
|
|
|
lambda_function(event_object, context_object); |