mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
a05e8198c9
* Fix bad paren placement in `/javascript` handler
This fixes a bug introduced in commit
ed5a635f4c
.
* add regression test for #4495
* Move `/javascript` test to `specialpages.js`
Co-authored-by: webzwo0i <webzwo0i@c3d2.de>
25 lines
764 B
JavaScript
25 lines
764 B
JavaScript
const common = require('../common');
|
|
const settings = require('ep_etherpad-lite/node/utils/Settings');
|
|
|
|
describe(__filename, function() {
|
|
let agent;
|
|
const backups = {};
|
|
before(async function() { agent = await common.init(); });
|
|
beforeEach(async function() {
|
|
backups.settings = {};
|
|
for (const setting of ['requireAuthentication', 'requireAuthorization']) {
|
|
backups.settings[setting] = settings[setting];
|
|
}
|
|
settings.requireAuthentication = false;
|
|
settings.requireAuthorization = false;
|
|
});
|
|
afterEach(async function() {
|
|
Object.assign(settings, backups.settings);
|
|
});
|
|
|
|
describe('/javascript', function() {
|
|
it('/javascript -> 200', async function() {
|
|
await agent.get('/javascript').expect(200);
|
|
});
|
|
});
|
|
});
|