0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed broken regression tests from #11861

no-issue

The config is now a class and the context of `this` was not bound
This commit is contained in:
Fabien O'Carroll 2020-06-02 16:20:57 +02:00
parent 4e139ee5b4
commit 37a1947fc5
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ function createApiInstance(config) {
const membersApiInstance = MembersApi({
tokenConfig: config.getTokenConfig(),
auth: {
getSigninURL: config.getSigninURL,
getSigninURL: config.getSigninURL.bind(config),
allowSelfSignup: config.getAllowSelfSignup(),
secret: config.getAuthSecret()
},

View file

@ -264,7 +264,7 @@ describe('Database Migration (special functions)', function () {
result.roles.at(7).get('name').should.eql('Scheduler Integration');
// Permissions
result.permissions.length.should.eql(74);
result.permissions.length.should.eql(75);
result.permissions.toJSON().should.be.CompletePermissions();
});
});