Guest User

Untitled

a guest
Apr 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var triggerComponent = function (callback) {
  2. vm.callComponent = callback;
  3. };
  4.  
  5. Scope.keyOpenFeedback = function(e) {
  6. if(e.keyCode === 13 || e.keyCode === 32) {
  7. $timeout(function() {
  8. $(e.target).trigger('click');
  9. });
  10. }
  11. };
  12.  
  13. it('controller should call trigger feedback', function () {
  14. controller.callFeedback.toHaveBeenCalled();
  15. });
Add Comment
Please, Sign In to add comment