-
Notifications
You must be signed in to change notification settings - Fork 419
/
index.html
44 lines (41 loc) · 1.24 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
big_header: true
include_docco: true
title: Jasmine Documentation
---
<div class="main-content reasons">
<div class="reason">
<h5 class="reason-title">FAST</h5>
Low overhead, jasmine-core has no external dependencies.
</div>
<div class="reason">
<h5 class="reason-title">NO MAGIC</h5>
Jasmine specs are just JavaScript. Jasmine doesn't change the way your code
loads or runs.
</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() {
let a;
it("and so is a spec", function() {
a = true;
expect(a).toBe(true);
{% endhighlight %}
</div>
<div class="example-text">
Jasmine is a framework for testing JavaScript code.
It does not depend on any other JavaScript frameworks.
It runs in browsers and in Node.js.
And it has a clean, obvious syntax so that you can easily write tests.
<div class="example-text-links">
<a class="button" href="{{ site.baseurl }}/pages/getting_started.html">Get Started</a>
</div>
</div>
</div>