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: "/" }); });

source share