forked from jasmine/jasmine.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (41 loc) · 1.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
layout: default
title: Jasmine Documentation
---
<div class="main-content reasons">
<div class="reason">
<h5 class="reason-title">FAST</h5>
Low overhead, no external dependencies.
</div>
<div class="reason">
<h5 class="reason-title">BATTERIES INCLUDED</h5>
Comes out of the box with everything you need to test your code.
</div>
<div class="reason">
<h5 class="reason-title">NODE AND BROWSER</h5>
Run your browser tests and Node.js tests with the same framework.
</div>
</div>
<div class="main-content">
<div class="example-code">
{% highlight javascript %}
describe("A suite is just a function", function() {
var a;
it("and so is a spec", function() {
a = true;
expect(a).toBe(true);
});
});
{% endhighlight %}
</div>
<div class="example-text">
<div class="example-text-label">Sample Code</div>
Jasmine is a behavior-driven development framework for testing JavaScript code.
It does not depend on any other JavaScript frameworks.
It does not require a DOM.
And it has a clean, obvious syntax so that you can easily write tests.
<div class="example-text-links">
<a class="button" href="{{ site.github.url }}/pages/getting_started.html">Get Started</a>
</div>
</div>
</div>