dimanche 4 août 2019

how to write unit tests angularjs for structure is as follow?

My angular's structure is as follow.

var testApp = angular.module("testApp", ["ngRoute"]);


testApp.service('testService', function($http, $q) {

});

testApp.controller("testController", function($scope, testService) {
  angular.element(document).ready(function() {


  });
});

<div>
  <div ng-app="testApp">
    <div ng-view></div>
  </div>
</div>

How should I use jasmine in this structure?

Aucun commentaire:

Enregistrer un commentaire