Shun Miyazawa 4 years ago
parent
commit
7a8d206239
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/app/src/server/crowi/index.js

+ 5 - 2
packages/app/src/server/crowi/index.js

@@ -146,6 +146,9 @@ Crowi.prototype.initForTest = async function() {
   await this.setupModels();
   await this.setupModels();
   await this.setupConfigManager();
   await this.setupConfigManager();
 
 
+  // setup messaging services
+  await this.setupSocketIoService();
+
   // // customizeService depends on AppService and XssService
   // // customizeService depends on AppService and XssService
   // // passportService depends on appService
   // // passportService depends on appService
   await Promise.all([
   await Promise.all([
@@ -170,8 +173,8 @@ Crowi.prototype.initForTest = async function() {
     // this.setupExport(),
     // this.setupExport(),
     // this.setupImport(),
     // this.setupImport(),
     this.setupPageService(),
     this.setupPageService(),
-    // this.setupInAppNotificationService(),
-    // this.setupActivityService(),
+    this.setupInAppNotificationService(),
+    this.setupActivityService(),
   ]);
   ]);
 
 
   // globalNotification depends on slack and mailer
   // globalNotification depends on slack and mailer