mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
26 lines
717 B
JavaScript
26 lines
717 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const padManager = require('../../../node/db/PadManager');
|
|
const settings = require('../../../node/utils/Settings');
|
|
|
|
describe(__filename, function () {
|
|
let agent;
|
|
const settingsBackup = {};
|
|
|
|
before(async function () {
|
|
agent = await common.init();
|
|
settingsBackup.soffice = settings.soffice;
|
|
await padManager.getPad('testExportPad', 'test content');
|
|
});
|
|
|
|
after(async function () {
|
|
Object.assign(settings, settingsBackup);
|
|
});
|
|
|
|
it('returns 500 on export error', async function () {
|
|
settings.soffice = 'false'; // '/bin/false' doesn't work on Windows
|
|
await agent.get('/p/testExportPad/export/doc')
|
|
.expect(500);
|
|
});
|
|
});
|