I am new in unit testing in Ionic Framework. While write first test case I got error. Here is my code:
describe("ProgrameCtrl Unit Tests", function () {
var $scope, ctrl, $timeout, $timeout, $http; //, $location;
beforeEach(function () {
module('starter');
inject(function ($rootScope, $controller, $q, _$timeout_) {
$scope = $rootScope.$new();
$timeout = _$timeout_;
ctrl = $controller('ProgrameCtrl', {
$scope: $scope
});
});
});
it("should have a $scope variable", function() {
expect($scope).toBeDefined();
});
});
Error is: Expected undefined to be defined.
Please help