Olivier Massot 1 год назад
Родитель
Сommit
624304ebdb
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      tests/units/services/rights/abilityBuilder.test.ts

+ 4 - 2
tests/units/services/rights/abilityBuilder.test.ts

@@ -37,12 +37,14 @@ const doc = {
     },
     },
   },
   },
 }
 }
-vi.mock('yaml-import', async () => {
+
+vi.mock('yaml-import', () => {
   return {
   return {
-    default: { read: vi.fn((data: string) => doc) },
+    read: vi.fn((data: string) => doc)
   }
   }
 })
 })
 
 
+
 beforeEach(() => {
 beforeEach(() => {
   ability = vi.fn() as any as MongoAbility
   ability = vi.fn() as any as MongoAbility
   accessProfile = vi.fn() as any as AccessProfile
   accessProfile = vi.fn() as any as AccessProfile