How can you test for focus in an AngularJS directive? I would expect the following to work:
describe(\'focus test\', function(){ it(\'should focus element\',
Try 'document.activeElement' instead of ':focus'. I haven't tested it in karma, but $('document.activeElement') behaves as desired under standard jQuery.
'document.activeElement'
':focus'
$('document.activeElement')