zahmis před 5 roky
rodič
revize
c5d4883226
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/test/util/slack.test.js

+ 4 - 4
src/test/util/slack.test.js

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