|
@@ -24,7 +24,7 @@ describe("API Versioning", function () {
|
|
it("maintains the requested version " + version, function() {
|
|
it("maintains the requested version " + version, function() {
|
|
chakram.get('/' + version + '/').then(function (response) {
|
|
chakram.get('/' + version + '/').then(function (response) {
|
|
expect(response).to.have.schema(schemas.rootNoLogin);
|
|
expect(response).to.have.schema(schemas.rootNoLogin);
|
|
- let regex = new RegExp('http://[^/]+/api/' + version + '/auth/', 'g')
|
|
|
|
|
|
+ let regex = new RegExp('https://[^/]+/api/' + version + '/auth/login/', 'g')
|
|
expect(response.body.login).to.match(regex);
|
|
expect(response.body.login).to.match(regex);
|
|
return chakram.wait();
|
|
return chakram.wait();
|
|
});
|
|
});
|