1
1
jasmine-node
2
2
======
3
3
4
+ [ ![ Build Status] ( https://secure.travis-ci.org/spaghetticode/jasmine-node.png )] ( http://travis-ci.org/spaghetticode/jasmine-node )
5
+
4
6
This node.js module makes the wonderful Pivotal Lab's jasmine
5
7
(http://github.com/pivotal/jasmine ) spec framework available in
6
8
node.js.
@@ -12,9 +14,9 @@ install
12
14
usage
13
15
------
14
16
15
- Write the specifications for your code in * .js and * .coffee files in the
16
- spec/ directory (note: your specification files must end with either
17
- .spec.js or .spec.coffee; otherwise jasmine-node won't find them!). You
17
+ Write the specifications for your code in * .js and * .coffee files in the
18
+ spec/ directory (note: your specification files must end with either
19
+ .spec.js or .spec.coffee; otherwise jasmine-node won't find them!). You
18
20
can use sub-directories to better organise your specs.
19
21
20
22
If you have installed the npm package, you can run it with:
@@ -44,7 +46,7 @@ async tests
44
46
-----------
45
47
46
48
jasmine-node includes an alternate syntax for writing asynchronous tests. Accepting
47
- a done callback in the specification will trigger jasmine-node to run the test
49
+ a done callback in the specification will trigger jasmine-node to run the test
48
50
asynchronously waiting until the done() callback is called.
49
51
50
52
``` javascript
@@ -56,8 +58,8 @@ asynchronously waiting until the done() callback is called.
56
58
});
57
59
```
58
60
59
- An asynchronous test will fail after 5000 ms if done() is not called. This timeout
60
- can be changed by setting jasmine.DEFAULT_TIMEOUT_INTERVAL or by passing a timeout
61
+ An asynchronous test will fail after 5000 ms if done() is not called. This timeout
62
+ can be changed by setting jasmine.DEFAULT_TIMEOUT_INTERVAL or by passing a timeout
61
63
interval in the specification.
62
64
63
65
it("should respond with hello world", function(done) {
0 commit comments