Jasmine
Documentation
First off, we need an html file to load the files required by Jasmine along with the file containing our tests as a module client.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec</title>
<link rel="shortcut icon" type="image/png" href="/jasmine/images/jasmine_favicon.png">
<link rel="stylesheet" href="/jasmine/lib/jasmine-core/jasmine.css">
<script src="/jasmine/lib/jasmine-core/jasmine.js"></script>
<script src="/jasmine/lib/jasmine-core/jasmine-html.js"></script>
<script src="/jasmine/lib/jasmine-core/boot0.js"></script>
<!-- optional: include a file here that configures the Jasmine env -->
<script src="/jasmine/lib/jasmine-core/boot1.js"></script>
<script type="module" src="eg1.js"></script>
</head>
<body>
</body>
</html>
git clone https://github.com/jasmine/jasmine.git
The key files are in jasmine/lib/jasmine-core
.
Behaviour Driven Development Jargon
Design by Contract
Client must ensure precondition.
Supplier may assume precondition.