Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fponticelli committed Apr 22, 2016
1 parent 76122b0 commit 00032bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions build.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
-main TestAll
-js bin/test.js
-cmd node bin/test.js
-debug
#-dce no
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Franco Ponticelli <[email protected]>",
"license": "ISC",
"dependencies": {
"body-parser": "^1.13.1",
"express": "^4.12.2"
"body-parser": "^1.15.0",
"express": "^4.13.4"
}
}
1 change: 0 additions & 1 deletion test/TestAll.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import utest.ui.Report;
import utest.Runner;

class TestAll {
static var port = 8888;
public static function main() {
abe.App.installNpmDependencies();

Expand Down
2 changes: 1 addition & 1 deletion test/TestCalls.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import js.node.http.*;
import js.node.Querystring;

class TestCalls {
static var port = 8888;
static var port = 42476;
public function new() {}

var app : App;
Expand Down
2 changes: 1 addition & 1 deletion test/TestErrorHandling.hx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class TestErrorHandling extends TestCalls {
Assert.equals(404, res.statusCode);
});

// in debug mode, the request returns an object instead of a string
get("/debug/badRequest", function (body, res) {
trace(body);
var parsed = haxe.Json.parse(body);
Assert.equals("Bad Request", parsed.message);
Assert.isTrue(parsed.stackItems.length > 0);
Expand Down

0 comments on commit 00032bb

Please sign in to comment.