瀏覽代碼

Merge branch 'hotfix/post_release_fixes'

Olivier Massot 2 年之前
父節點
當前提交
c7c750f359
共有 5 個文件被更改,包括 10 次插入19 次删除
  1. 2 2
      .gitignore
  2. 2 2
      .gitlab-ci.yml
  3. 2 2
      README.md
  4. 2 2
      nuxt.config.ts
  5. 2 11
      tests/units/services/layout/menuBuilder/statsMenuBuilder.test.ts

+ 2 - 2
.gitignore

@@ -16,8 +16,8 @@ dist
 # macOS
 .DS_Store
 
-local.app-v3.opentalent.fr.crt
-local.app-v3.opentalent.fr.key
+local.app.opentalent.fr.crt
+local.app.opentalent.fr.key
 /.project
 
 yarn.lock

+ 2 - 2
.gitlab-ci.yml

@@ -5,8 +5,8 @@ variables:
   APP_ENV: ci
 
 before_script:
-  - echo "" > ./local.app-v3.opentalent.fr.crt
-  - echo "" > ./local.app-v3.opentalent.fr.key
+  - echo "" > ./local.app.opentalent.fr.crt
+  - echo "" > ./local.app.opentalent.fr.key
 
 cache:
   paths:

+ 2 - 2
README.md

@@ -40,8 +40,8 @@ Créer le symlink vers le bon fichier env (remplacer `<environnement>` par l'env
 
 Copier les certificats à la racine de ce projet :
 
-* local.app-v3.opentalent.fr.crt
-* local.app-v3.opentalent.fr.key
+* local.app.opentalent.fr.crt
+* local.app.opentalent.fr.key
 
 
 Lancer le serveur de développement :

+ 2 - 2
nuxt.config.ts

@@ -6,8 +6,8 @@ let https = {}
 
 if (process.env.NUXT_ENV === 'dev') {
     https = {
-        key: fs.readFileSync('local.app-v3.opentalent.fr.key'),
-        cert: fs.readFileSync('local.app-v3.opentalent.fr.crt'),
+        key: fs.readFileSync('local.app.opentalent.fr.key'),
+        cert: fs.readFileSync('local.app.opentalent.fr.crt'),
     }
 }
 

+ 2 - 11
tests/units/services/layout/menuBuilder/statsMenuBuilder.test.ts

@@ -1,5 +1,4 @@
-
-import { describe, test, it, expect } from 'vitest'
+import {describe, expect, test} from 'vitest'
 import {RuntimeConfig} from "@nuxt/schema";
 import {AnyAbility} from "@casl/ability/dist/types";
 import {AccessProfile, organizationState} from "~/types/interfaces";
@@ -42,7 +41,7 @@ describe('build', () => {
         expect(result.label).toEqual('stats')
         expect(result.icon).toEqual({name: 'fas fa-chart-bar'})
         // @ts-ignore
-        expect(result.children.length).toEqual(5)
+        expect(result.children.length).toEqual(4)
     })
 
     test('has no items', () => {
@@ -78,12 +77,4 @@ describe('build', () => {
             {label: 'fede_stats', icon: {name: 'fas fa-chart-bar'}, to: 'https://mydomain.com/#/statistic/membersfedeonly', type: MENU_LINK_TYPE.V1, active: false}
         )
     })
-
-    test('has only rights for menu structure_stats', () => {
-        ability.can = vi.fn((action: string, subject: string) => action === 'display' && subject === 'structure_stats_page')
-
-        expect(menuBuilder.build()).toEqual(
-            {label: 'structure_stats', icon: {name: 'fas fa-chart-bar'}, to: 'https://mydomain.com/#/statistic/membersfedeassos', type: MENU_LINK_TYPE.V1, active: false}
-        )
-    })
 })