Skip to content

Commit

Permalink
fix: Update Slack client npm package to web-api v5 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyi authored Dec 26, 2020
1 parent 418318f commit 398fc59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"@hapi/hapi": "^20.0.0",
"@hapi/hoek": "^9.0.4",
"@slack/client": "^4.3.1",
"@slack/web-api": "^5.14.0",
"joi": "^17.2.1",
"mockery": "^2.1.0",
"request": "^2.87.0",
Expand Down
2 changes: 1 addition & 1 deletion slack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const { WebClient } = require('@slack/client');
const { WebClient } = require('@slack/web-api');

let web;

Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('index', () => {
WebClientConstructorMock = {
WebClient: sinon.stub().returns(WebClientMock)
};
mockery.registerMock('@slack/client', WebClientConstructorMock);
mockery.registerMock('@slack/web-api', WebClientConstructorMock);

// eslint-disable-next-line global-require
SlackNotifier = require('../index');
Expand Down
2 changes: 1 addition & 1 deletion test/slack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('slack', () => {
WebClientConstructorMock = {
WebClient: sinon.stub().returns(WebClientMock)
};
mockery.registerMock('@slack/client', WebClientConstructorMock);
mockery.registerMock('@slack/web-api', WebClientConstructorMock);

// eslint-disable-next-line global-require
slacker = require('../slack');
Expand Down

0 comments on commit 398fc59

Please sign in to comment.