Angular starting point
by otupman
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular-mocks.js"></script>
<div ng-controller="MyCtrl">
<p>{{message}}</p>
</div>
JavaScript
app = angular.module("mockingYou", ['ngMockE2E'])
.run(function($httpBackend) {
$httpBackend
.expectGET('http://www.google.com')
.respond(200, {message: "hahahahah, noooo"});
});
app.controller('MyCtrl', ['$scope', '$http', function($scope, $http) {
$scope.message = "Hello, world";
}]);