|
|
@@ -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', () => {
|