Skip to content

Commit 2f317b3

Browse files
committed
Add line of explanation
1 parent a0fe302 commit 2f317b3

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

lib/triggers/getPetsByStatus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const PetstoreClient = require('../petstoreClient');
77
*
88
* @param msg incoming messages which is empty for triggers
99
* @param cfg object to retrieve triggers configuration values, such as apiKey and pet status
10-
* @returns promise resolving a message to be emitted to the platform
10+
* Emits results as a message to the platform
1111
*/
1212
exports.process = async function getPetsByStatus(msg, cfg) {
1313
const client = new PetstoreClient(this, cfg);

lib/triggers/getPetsByStatusWithStaticData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const PetstoreClient = require('../petstoreClient');
77
*
88
* @param msg incoming messages which is empty for triggers
99
* @param cfg object to retrieve triggers configuration values, such as apiKey and pet status
10-
* @returns promise resolving a message to be emitted to the platform
10+
* Emits results as a message to the platform
1111
*/
1212
exports.process = async function getPetsByStatus(msg, cfg) {
1313
const client = new PetstoreClient(this, cfg);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"@elastic.io/component-commons-library": "0.0.6",
20-
"chai": "^4.2.0",
20+
"chai": "4.2.0",
2121
"elasticio-node": "0.0.8",
2222
"elasticio-sailor-nodejs": "2.5.1",
2323
"mocha": "6.2.2",

spec/createPet.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const msg = {
1414
},
1515
};
1616

17+
// we use sinon to mock functions such as `emit`, which come from sailor when the code is loaded onto the platform
1718
const self = {
1819
emit: sinon.spy(),
1920
};

0 commit comments

Comments
 (0)