I want my unit test to verify that the $scope object has the right areas and that when the click event happens, the $rootScope variable is set correctly.
We are going to mock the areaService object with fake data and we'll also tell the controller injection service to use our mock.
Your new post is loading...