You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
I had a ton of access control tests to write. Typically we just write a utility method in a test file or in a supports.js or util file somewhere to reduce the redundancy of test setup. The issue with the access control tests was that even it() and describe() were becoming somewhat repetitive.
This Module
Enter this testing module, it was initally written within loopback and specifically that file linked above. It reduced the definition of access control tests from 5-10 lines each to 1 liners.
beforeEach is essentially hard coded into the helpers
poorly documented / not written with intent for community consumption
mocha specific :(
Question
Should we deprecate this module? We have several pull requests that we might as well land, but probably should discourage new contributions and instead willing devs should spend effort in a better direction (eg. mocha agnostic test utils).