github.com/aminovpavel/nomad@v0.11.8/ui/tests/helpers/setup-ability.js (about) 1 export default ability => hooks => { 2 hooks.beforeEach(function() { 3 this.ability = this.owner.lookup(`ability:${ability}`); 4 }); 5 6 hooks.afterEach(function() { 7 delete this.ability; 8 }); 9 };