Skip to content

Commit

Permalink
Adds a simple https test (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Mar 20, 2018
1 parent 349a785 commit 3770550
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/http.js
Expand Up @@ -153,6 +153,21 @@ describe("http", function () {

});

if (gpf.hosts.browser !== gpf.host()) {

describe("https", function () {

it("handles https access", function (done) {
gpf.http.get("https://github.com/ArnaudBuchholz/gpf-js").then(function (response) {
assert(response.status === 200);
done();
})["catch"](done);
});

});

}

});

});

0 comments on commit 3770550

Please sign in to comment.