File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,24 @@ TEST('controller.increment()', function() {
3
8000
3
} ) ;
4
4
5
5
TEST ( 'Test URL 1' , '/1/' , function ( builder ) {
6
+ // builder === RESTBuilder
6
7
builder . get ( ) ;
7
8
builder . exec ( function ( err , response , output ) {
8
9
FAIL ( output . response !== '1' ) ;
9
10
} ) ;
10
11
} ) ;
11
12
12
13
TEST ( 'Test URL 2' , '/2/' , function ( builder ) {
14
+ // builder === RESTBuilder
13
15
builder . get ( ) ;
14
16
builder . exec ( function ( err , response , output ) {
15
- FAIL ( output . response !== '2' ) ;
17
+ FAIL ( output . response !== '2' , 'additional description' ) ;
18
+ OK ( output . status === 200 , 'HTTP status' ) ;
16
19
} ) ;
17
20
} ) ;
18
21
19
22
TEST ( 'Test URL 3' , '/3/' , function ( builder ) {
23
+ // builder === RESTBuilder
20
24
builder . json ( { data : 4 } ) ;
21
25
builder . exec ( function ( err , response ) {
22
26
FAIL ( response . data !== 3 ) ;
You can’t perform that action at this time.
0 commit comments