Przeglądaj źródła

refs #124935: Fix quistionnaire answer
- Fix tests for questionnaire.

Tatsuya Ise 2 lat temu
rodzic
commit
d32f588c35

+ 0 - 21
apps/app/test/integration/service/questionnaire.test.ts

@@ -30,11 +30,6 @@ describe('QuestionnaireService', () => {
     });
   });
 
-  afterAll(async() => {
-    delete process.env.FORCE_WIKI_MODE;
-    await crowi.setupConfigManager();
-  });
-
   describe('getGrowiInfo', () => {
     test('Should get correct GROWI info', async() => {
       const growiInfo = await crowi.questionnaireService.getGrowiInfo();
@@ -76,22 +71,6 @@ describe('QuestionnaireService', () => {
       });
     });
 
-    test('WikiType is "open" when env value FORCE_WIKI_MODE is "public"', async() => {
-      process.env.FORCE_WIKI_MODE = 'public';
-      await crowi.setupConfigManager();
-
-      const growiInfo = await crowi.questionnaireService.getGrowiInfo();
-      expect(growiInfo.wikiType).toEqual('open');
-    });
-
-    test('WikiType is "close" when env value FORCE_WIKI_MODE is "private"', async() => {
-      process.env.FORCE_WIKI_MODE = 'private';
-      await crowi.setupConfigManager();
-
-      const growiInfo = await crowi.questionnaireService.getGrowiInfo();
-      expect(growiInfo.wikiType).toEqual('closed');
-    });
-
   });
 
   describe('getUserInfo', () => {