Merge pull request #4332 from overleaf/sk-import-server-pro-acceptance-tests
Migrate server-pro acceptance tests to modules GitOrigin-RevId: 7caf5719d21bbd7fb30901f3e52225fe4cbc9832
This commit is contained in:
@@ -18,7 +18,9 @@ module.exports = {
|
||||
security: {
|
||||
sessionSecret: 'static-secret-for-tests',
|
||||
},
|
||||
adminDomains: ['example.com'],
|
||||
adminDomains: process.env.ADMIN_DOMAINS
|
||||
? JSON.parse(process.env.ADMIN_DOMAINS)
|
||||
: ['example.com'],
|
||||
|
||||
statusPageUrl: 'status.example.com',
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ describe('Features', function () {
|
||||
})
|
||||
describe('with ldap setting', function () {
|
||||
beforeEach(function () {
|
||||
this.settings.ldap = true
|
||||
this.settings.ldap = { enable: true }
|
||||
})
|
||||
it('should return true', function () {
|
||||
expect(this.Features.externalAuthenticationSystemUsed()).to.be.true
|
||||
@@ -28,7 +28,7 @@ describe('Features', function () {
|
||||
})
|
||||
describe('with saml setting', function () {
|
||||
beforeEach(function () {
|
||||
this.settings.saml = true
|
||||
this.settings.saml = { enable: true }
|
||||
})
|
||||
it('should return true', function () {
|
||||
expect(this.Features.externalAuthenticationSystemUsed()).to.be.true
|
||||
|
||||
Reference in New Issue
Block a user