Question: I am trying to execute some unit test on Bamboo CI. As suggested in Karma config, I do have `SingleRun = true.`
The reporter used is "progress".
Since we build our application using Angular CLI, so I am taking advantage of `ng test --build=false` command which I have set up as a npm script. So, I run my test with command as `npm run <myscriptname>`

problem - I am able to run tests, some pass and some fails, however, my task always returns success as long as I am able to run tests.

I am trying to avoid using gulp/grunt, so if possible let me know something without it. I have also tried directly calling `Karma start <config file>` but that too didn't help.

Answer: 
Hmm, try using [JQuery's focus](http://api.jquery.com/focus/) instead of click event.

Depending on what you're doing, it might work better.

```
$(".dropdown-toggle").focus(function() {

```
Try this:

```
$('.dropdown-content a').click(function(ev){
  ev.preventDefault();
  alert('yo');            
});

```