Skip to content

Commit

Permalink
Updating router, fixing #94, adding a test (likely should be in tiny-…
Browse files Browse the repository at this point in the history
…httptest)
  • Loading branch information
avoidwork committed Oct 12, 2017
1 parent 76cba08 commit 95d0b87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"tiny-uuid4": "~1.0.1",
"tiny-xml": "~1.0.6",
"uws": "^8.14.1",
"woodland": "^2.3.2",
"woodland": "^2.3.3",
"yamljs": "~0.3.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions test/behavior_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,15 @@ describe("CORS", function () {
it("OPTIONS /empty - returns an empty array", function () {
return tinyhttptest({url: "http://localhost:" + port + "/empty", method: "options"})
.cors("http://not.localhost")
.expectHeader("access-control-allow-credentials", "true")
.expectStatus(200)
.end();
});

it("GET /empty - returns an empty array", function () {
return tinyhttptest({url: "http://localhost:" + port + "/empty"})
.cors("http://not.localhost")
.expectHeader("access-control-allow-credentials", "true")
.expectStatus(200)
.end();
});
Expand Down

0 comments on commit 95d0b87

Please sign in to comment.