Yuki Takei 1 year ago
parent
commit
23039e3d87
1 changed files with 3 additions and 3 deletions
  1. 3 3
      apps/app/src/server/service/acl.integ.ts

+ 3 - 3
apps/app/src/server/service/acl.integ.ts

@@ -190,11 +190,11 @@ describe('AclService test', () => {
         await configManager.loadConfigs();
         await configManager.loadConfigs();
 
 
         // setup mock implementation
         // setup mock implementation
-        getConfigSpy.mockImplementation((ns, key) => {
-          if (ns === 'crowi' && key === 'security:restrictGuestMode') {
+        getConfigSpy.mockImplementation((key) => {
+          if (key === 'security:restrictGuestMode') {
             return restrictGuestMode;
             return restrictGuestMode;
           }
           }
-          if (ns === 'crowi' && key === 'security:wikiMode') {
+          if (key === 'security:wikiMode') {
             return undefined;
             return undefined;
           }
           }
           throw new Error('Unexpected behavior.');
           throw new Error('Unexpected behavior.');