forked from willmorgan/stub-azure-function-context
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (24 loc) · 842 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const { callFunction, runStubFunctionFromBindings } = require('./lib/function-runner');
const { stubContextFromBindingDefinitions, setContextLogger } = require('./lib/context-builder');
const {
blob: { createTrigger: createBlobTrigger },
http: { createTrigger: createHttpTrigger },
queue: {
createTrigger: createQueueTrigger,
createTriggerFromQueueMessage: createQueueTriggerFromMessage,
},
table: { createTrigger: createTableTrigger },
timer: { createTrigger: createTimerTrigger },
} = require('./lib/bindings');
module.exports = {
callFunction,
runStubFunctionFromBindings,
stubContextFromBindingDefinitions,
setContextLogger,
createBlobTrigger,
createHttpTrigger,
createQueueTrigger,
createQueueTriggerFromMessage,
createTableTrigger,
createTimerTrigger,
};