8000 Update test. · masteramuk/examples@c4aa527 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4aa527

Browse files
committed
Update test.
1 parent 1aa07c7 commit c4aa527

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

assertion-testing/tests/default.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ TEST('controller.increment()', function() {
3 8000 3
});
44

55
TEST('Test URL 1', '/1/', function(builder) {
6+
// builder === RESTBuilder
67
builder.get();
78
builder.exec(function(err, response, output) {
89
FAIL(output.response !== '1');
910
});
1011
});
1112

1213
TEST('Test URL 2', '/2/', function(builder) {
14+
// builder === RESTBuilder
1315
builder.get();
1416
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');
1619
});
1720
});
1821

1922
TEST('Test URL 3', '/3/', function(builder) {
23+
// builder === RESTBuilder
2024
builder.json({ data: 4 });
2125
builder.exec(function(err, response) {
2226
FAIL(response.data !== 3);

0 commit comments

Comments
 (0)
0