Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Aug 15, 2017
1 parent 909fae7 commit 2c722c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/run/utils/logEventGateway.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('logEventGateway', () => {
})
);
expect(logStub.calledOnce).to.be.equal(true);
const expected = ' Event Gateway Function registered: s1-f1\n';
const expected = " Event Gateway Function 's1-f1' registered\n";
expect(logStub.getCall(0).args[0]).to.be.equal(expected);
});

Expand All @@ -47,7 +47,7 @@ describe('logEventGateway', () => {
);
expect(logStub.calledOnce).to.be.equal(true);
const expected = // eslint-disable-next-line max-len
' Event Gateway Event received: undefined\n {\n "headers": {\n "Accept": [\n "image/webp,image/apng,image/*,*/*;q=0.8"\n ],\n "Accept-Encoding": [\n "gzip, deflate, br"\n ],\n "Accept-Language": [\n "en-US,en;q=0.8"\n ],\n "Cache-Control": [\n "no-cache"\n ],\n "Connection": [\n "keep-alive"\n ],\n "Pragma": [\n "no-cache"\n ],\n "Referer": [\n "http://localhost:4000/"\n ],\n "User-Agent": [\n "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"\n ]\n },\n "query": {},\n "body": ""\n }\n';
' Event Gateway Event \'undefined\' received:\n\n {\n "headers": {\n "Accept": [\n "image/webp,image/apng,image/*,*/*;q=0.8"\n ],\n "Accept-Encoding": [\n "gzip, deflate, br"\n ],\n "Accept-Language": [\n "en-US,en;q=0.8"\n ],\n "Cache-Control": [\n "no-cache"\n ],\n "Connection": [\n "keep-alive"\n ],\n "Pragma": [\n "no-cache"\n ],\n "Referer": [\n "http://localhost:4000/"\n ],\n "User-Agent": [\n "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"\n ]\n },\n "query": {},\n "body": ""\n }\n\n';
expect(logStub.getCall(0).args[0]).to.be.equal(expected);
});
});

0 comments on commit 2c722c2

Please sign in to comment.