Skip to content

Commit 85fe8ef

Browse files
Merge pull request #25 from elasticio/UPD-sailor-JSONata-docker
sailor 2.5.1
2 parents f061c15 + a61428a commit 85fe8ef

File tree

4 files changed

+123
-52
lines changed

4 files changed

+123
-52
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.1 (December 07, 2019)
2+
3+
* Update sailor version to 2.5.1
4+
15
## 1.1.0 (July 29, 2019)
26

37
* Migrate to es6

package-lock.json

Lines changed: 105 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webhook",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "elastic.io webhook component",
55
"scripts": {
66
"pretest": "eslint spec lib verifyCredentials.js --fix",
@@ -12,13 +12,14 @@
1212
"author": "elastic.io GmbH",
1313
"license": "Apache License 2.0",
1414
"dependencies": {
15-
"elasticio-sailor-nodejs": "2.4.2",
15+
"elasticio-sailor-nodejs": "2.5.1",
1616
"elasticio-node": "0.0.8",
1717
"node-uuid": "1.4.8",
1818
"request": "2.83.x",
1919
"q": "1.5.1"
2020
},
2121
"devDependencies": {
22+
"@elastic.io/component-logger": "0.0.1",
2223
"chai": "3.5.0",
2324
"eslint": "5.16.0",
2425
"eslint-plugin-mocha": "5.3.0",

spec/webhook.spec.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/* eslint-env node, mocha */
22
'use strict';
33

4-
const expect = require('chai').expect;
4+
const { expect } = require('chai');
55
const sinon = require('sinon');
66
const nock = require('nock');
7+
const logger = require('@elastic.io/component-logger')();
8+
79
const send = require('../lib/actions/send.js');
810
const getMethod = require('../lib/helper/get.js');
911
const receive = require('../lib/triggers/receive.js');
@@ -36,7 +38,7 @@ describe('Test Webhook', () => {
3638
};
3739
self = sinon.spy(emitter, 'emit');
3840
send.process.call(
39-
{ emit: self }, {
41+
{ emit: self, logger }, {
4042
body: {
4143
k1: 'v1',
4244
k2: 'v2'
@@ -77,7 +79,7 @@ describe('Test Webhook', () => {
7779
};
7880
self = sinon.spy(emitter, 'emit');
7981
send.process.call(
80-
{ emit: self }, {
82+
{ emit: self, logger }, {
8183
body: {
8284
k1: 'v1',
8385
k2: 'v2'
@@ -117,7 +119,7 @@ describe('Test Webhook', () => {
117119
};
118120
self = sinon.spy(emitter, 'emit');
119121
send.process.call(
120-
{ emit: self }, {
122+
{ emit: self, logger }, {
121123
body: {
122124
k1: 'v1',
123125
k2: 'v2'
@@ -152,7 +154,7 @@ describe('Test Webhook', () => {
152154
};
153155
self = sinon.spy(emitter, 'emit');
154156
getMethod.process.call(
155-
{ emit: self }, {
157+
{ emit: self, logger }, {
156158
body: {
157159
k1: 'v1',
158160
k2: 'v2'
@@ -190,7 +192,7 @@ describe('Test Webhook', () => {
190192
};
191193
self = sinon.spy(emitter, 'emit');
192194
getMethod.process.call(
193-
{ emit: self }, {
195+
{ emit: self, logger }, {
194196
body: {
195197
k1: 'v1',
196198
k2: 'v2'
@@ -231,7 +233,7 @@ describe('Test Webhook', () => {
231233
};
232234
self = sinon.spy(emitter, 'emit');
233235
getMethod.process.call(
234-
{ emit: self }, {
236+
{ emit: self, logger }, {
235237
body: {
236238
k1: 'v1',
237239
k2: 'v2'
@@ -276,7 +278,7 @@ describe('Test Webhook', () => {
276278
}
277279
};
278280
self = sinon.spy(emitter, 'emit');
279-
receive.process.call({ emit: self }, msg, {});
281+
receive.process.call({ emit: self, logger }, msg, {});
280282
}
281283
);
282284
executeAction.then(function resolve() {
@@ -314,7 +316,7 @@ describe('Test Webhook', () => {
314316
}
315317
};
316318
self = sinon.spy(emitter, 'emit');
317-
receive.process.call({ emit: self }, msg, {});
319+
receive.process.call({ emit: self, logger }, msg, {});
318320
}
319321
);
320322
executeAction.then(function resolve() {

0 commit comments

Comments
 (0)