Explorar el Código

imprv: add installed-date to questionnaire answer
fix test check for questionnaire

Tatsuya Ise hace 2 años
padre
commit
cd4d95c639
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      apps/app/test/integration/service/questionnaire.test.ts

+ 1 - 3
apps/app/test/integration/service/questionnaire.test.ts

@@ -45,8 +45,6 @@ describe('QuestionnaireService', () => {
 
       expect(growiInfo.appSiteUrlHashed).toBeTruthy();
       expect(growiInfo.appSiteUrlHashed).not.toBe('http://growi.test.jp');
-      expect(growiInfo.installedAt).toBeTruthy();
-      expect(typeof growiInfo.installedAt).toBe(Date);
       expect(growiInfo.osInfo.type).toBeTruthy();
       expect(growiInfo.osInfo.platform).toBeTruthy();
       expect(growiInfo.osInfo.arch).toBeTruthy();
@@ -55,12 +53,12 @@ describe('QuestionnaireService', () => {
       delete growiInfo.appSiteUrlHashed;
       delete growiInfo.currentActiveUsersCount;
       delete growiInfo.currentUsersCount;
-      delete growiInfo.installedAt;
       delete growiInfo.osInfo;
 
       expect(growiInfo).toEqual({
         activeExternalAccountTypes: ['saml', 'github'],
         appSiteUrl: 'http://growi.test.jp',
+        installedAt: new Date('2000-01-01'),
         attachmentType: 'aws',
         deploymentType: 'growi-docker-compose',
         type: 'on-premise',