repo for angularjs testing training
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
1.4 KiB

<!DOCTYPE html>
<html>
<head>
<!-- stylesheets -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet" />
<link href="//cdnjs.cloudflare.com/ajax/libs/mocha/1.13.0/mocha.css" rel="stylesheet" />
<!-- library scripts -->
<script src="//cdnjs.cloudflare.com/ajax/libs/mocha/1.13.0/mocha.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/chai/1.10.0/chai.min.js"></script>
<script src="//sinonjs.org/releases/sinon-1.12.2.js"></script>
<script src="//code.angularjs.org/1.4.0-beta.4/angular.js"></script>
<script>
mocha.setup({
"ui": "bdd",
"reporter": "html"
});
</script>
<script src="//code.angularjs.org/1.4.0-beta.4/angular-mocks.js"></script>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<!-- project scripts -->
<script src="app.js"></script>
<script src="simpleService.js"></script>
<script src="simpleController.js"></script>
<!-- tests -->
<script src="simpleService.spec.js"></script>
<script src="simpleController.spec.js"></script>
</head>
<body>
<div class="container" style="margin-top:30px;">
<h1>AngularJS Unit Test Example using Mocha, Chai and Sinon</h1>
<div id="mocha"></div>
</div>
<script>
mocha.run();
</script>
</body>
</html>