|
|
@@ -3,19 +3,19 @@ const { getInstance } = require('../setup-crowi');
|
|
|
describe('Slack Util', () => {
|
|
|
|
|
|
let crowi;
|
|
|
- let slack;
|
|
|
+ let slackLegacy;
|
|
|
|
|
|
beforeEach(async(done) => {
|
|
|
crowi = await getInstance();
|
|
|
- slack = require(`${crowi.libDir}/util/slack`)(crowi);
|
|
|
+ slackLegacy = require(`${crowi.libDir}/util/slack-legacy`)(crowi);
|
|
|
done();
|
|
|
});
|
|
|
|
|
|
test('post comment method exists', () => {
|
|
|
- expect(slack.postComment).toBeInstanceOf(Function);
|
|
|
+ expect(slackLegacy.postComment).toBeInstanceOf(Function);
|
|
|
});
|
|
|
|
|
|
test('post page method exists', () => {
|
|
|
- expect(slack.postPage).toBeInstanceOf(Function);
|
|
|
+ expect(slackLegacy.postPage).toBeInstanceOf(Function);
|
|
|
});
|
|
|
});
|