Better coverage in Istanbul

The following code snippet has only 50% branch coverage (see coverage report below) I'm not sure how to improve this, since there are no if .

I think that Istanbul should take some measurements, which I don’t quite understand, any pointers are appreciated.

 angular .module("konakFront", [ "ngRoute" ]) .config(function ($routeProvider) { "use strict"; $routeProvider .when("/", { templateUrl: "views/main.html", controller: "MainCtrl" }) .otherwise({ redirectTo: "/" }); }); 

Istanbul Coverage

+6
source share
1 answer

This was due to an occasional double file toolkit. More detailed information can be found here:

https://github.com/gotwarlost/istanbul/issues/123

0
source

Source: https://habr.com/ru/post/959219/


All Articles