浏览代码

fix(e2e): fix broken API root test

Peter Thomassen 5 年之前
父节点
当前提交
d598c3c0fd
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 () {
-        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();
         });
     });