Explorar o código

fix unit tests

Olivier Massot hai 1 ano
pai
achega
624304ebdb
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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 {
-    default: { read: vi.fn((data: string) => doc) },
+    read: vi.fn((data: string) => doc)
   }
 })
 
+
 beforeEach(() => {
   ability = vi.fn() as any as MongoAbility
   accessProfile = vi.fn() as any as AccessProfile