From 5766b39be66a537740baf03195fc0058b8dbbc82 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Tue, 22 Sep 2020 16:13:57 +1200 Subject: [PATCH] Fixed failing regression tests refs 32b37d7ba8a53bd7c0b04051dc2a31138b7d5f0f - Some of the regression tests were broken after changes in referenced commit --- test/regression/api/v2/admin/authentication_spec.js | 2 +- test/regression/api/v3/admin/authentication_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/regression/api/v2/admin/authentication_spec.js b/test/regression/api/v2/admin/authentication_spec.js index 2d6c15c4f9..afa8719b6e 100644 --- a/test/regression/api/v2/admin/authentication_spec.js +++ b/test/regression/api/v2/admin/authentication_spec.js @@ -413,7 +413,7 @@ describe('Authentication API v2', function () { .then((res) => { should.exist(res.body.errors); res.body.errors[0].type.should.eql('UnauthorizedError'); - res.body.errors[0].message.should.eql('Invalid token structure'); + res.body.errors[0].message.should.eql('Cannot reset password.'); }); }); diff --git a/test/regression/api/v3/admin/authentication_spec.js b/test/regression/api/v3/admin/authentication_spec.js index 7a7c025dc7..9b847f9ca2 100644 --- a/test/regression/api/v3/admin/authentication_spec.js +++ b/test/regression/api/v3/admin/authentication_spec.js @@ -289,7 +289,7 @@ describe('Authentication API v3', function () { .then((res) => { should.exist(res.body.errors); res.body.errors[0].type.should.eql('UnauthorizedError'); - res.body.errors[0].message.should.eql('Invalid token structure'); + res.body.errors[0].message.should.eql('Cannot reset password.'); }); });