|
@@ -71,9 +71,9 @@ describe("API v1", function () {
|
|
|
});
|
|
|
|
|
|
it("provides an index page", function () {
|
|
|
- chakram.get('/').then(function (response) {
|
|
|
+ return chakram.get('/').then(function (response) {
|
|
|
expect(response).to.have.schema(schemas.rootNoLogin);
|
|
|
- expect(response.body.login).to.match(/http:\/\/[^\/]+\/api\/v1\/auth\//);
|
|
|
+ expect(response.body.login).to.match(/https:\/\/[^\/]+\/api\/v1\/auth\/login\//);
|
|
|
return chakram.wait();
|
|
|
});
|
|
|
});
|