Hi Sergii,
Do you have any suggestions how to go about unit testing the defined abilities?
Regards, nidkil
Here's an example in an app of mine: https://github.com/tahosalodge/unitelections-backend/blob/master/src/modules/user/__tests__/roles.ts
I used custom chai assertion which is defined in https://github.com/stalniy/casl/blob/master/packages/casl-ability/spec/spec_helper.js#L6
To be more expressive
close in favor of #145
Here's an example in an app of mine: https://github.com/tahosalodge/unitelections-backend/blob/master/src/modules/user/__tests__/roles.ts
file is now here - https://github.com/tahosalodge/unitelections-backend/blob/master/src/utils/__tests__/ability.ts