Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var triggerComponent = function (callback) {
- vm.callComponent = callback;
- };
- Scope.keyOpenFeedback = function(e) {
- if(e.keyCode === 13 || e.keyCode === 32) {
- $timeout(function() {
- $(e.target).trigger('click');
- });
- }
- };
- it('controller should call trigger feedback', function () {
- controller.callFeedback.toHaveBeenCalled();
- });
Add Comment
Please, Sign In to add comment