Explorar o código

fix(e2e): fix broken API root test

Peter Thomassen %!s(int64=5) %!d(string=hai) anos
pai
achega
d598c3c0fd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      test/e2e/spec/api_spec.js

+ 2 - 2
test/e2e/spec/api_spec.js

@@ -71,9 +71,9 @@ describe("API v1", function () {
     });
     });
 
 
     it("provides an index page", 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).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();
             return chakram.wait();
         });
         });
     });
     });