
> backend@1.5.1 test D:\nap-dms.lcbp3\backend
> jest "src/common/auth/casl/ability.factory.spec.ts"

FAIL src/common/auth/casl/ability.factory.spec.ts
  AbilityFactory
    ΓêÜ should be defined (12 ms)
    Global Admin
      ├ù should grant all permissions for global admin (4 ms)
    Organization Level
      ΓêÜ should grant permissions for matching organization (3 ms)
      ΓêÜ should deny permissions for non-matching organization (2 ms)
    Project Level
      ΓêÜ should grant permissions for matching project (3 ms)
    Contract Level
      ΓêÜ should grant permissions for matching contract (2 ms)
    Multiple Assignments
      ΓêÜ should combine permissions from multiple assignments (2 ms)

  ΓùÅ AbilityFactory ΓÇ║ Global Admin ΓÇ║ should grant all permissions for global admin

    expect(received).toBe(expected) // Object.is equality

    Expected: true
    Received: false

      34 |       const ability = factory.createForUser(user, {});
      35 |
    > 36 |       expect(ability.can('manage', 'all')).toBe(true);
         |                                            ^
      37 |     });
      38 |   });
      39 |

      at Object.<anonymous> (common/auth/casl/ability.factory.spec.ts:36:44)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 6 passed, 7 total
Snapshots:   0 total
Time:        1.168 s, estimated 2 s
Ran all test suites matching src/common/auth/casl/ability.factory.spec.ts.
ΓÇëELIFECYCLEΓÇë Test failed. See above for more details.
