mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
not working atm
This commit is contained in:
parent
1702c7c34e
commit
4fbf0e8e2a
68 changed files with 238 additions and 9606 deletions
|
@ -58,7 +58,7 @@ describe(__filename, function () {
|
|||
|
||||
describe('setHTML', function () {
|
||||
it('Sets the HTML of a Pad attempting to weird utf8 encoded content', function (done) {
|
||||
fs.readFile('../tests/backend/specs/api/emojis.html', 'utf8', (err, html) => {
|
||||
fs.readFile('tests/backend/specs/api/emojis.html', 'utf8', (err, html) => {
|
||||
api.post(endPoint('setHTML'))
|
||||
.send({
|
||||
padID: testPadId,
|
||||
|
|
|
@ -12,12 +12,12 @@ const settings = require(`${__dirname}/../../../../src/node/utils/Settings`);
|
|||
const padManager = require(`${__dirname}/../../../../src/node/db/PadManager`);
|
||||
const plugins = require(`${__dirname}/../../../../src/static/js/pluginfw/plugin_defs`);
|
||||
|
||||
const padText = fs.readFileSync('../tests/backend/specs/api/test.txt');
|
||||
const etherpadDoc = fs.readFileSync('../tests/backend/specs/api/test.etherpad');
|
||||
const wordDoc = fs.readFileSync('../tests/backend/specs/api/test.doc');
|
||||
const wordXDoc = fs.readFileSync('../tests/backend/specs/api/test.docx');
|
||||
const odtDoc = fs.readFileSync('../tests/backend/specs/api/test.odt');
|
||||
const pdfDoc = fs.readFileSync('../tests/backend/specs/api/test.pdf');
|
||||
const padText = fs.readFileSync('tests/backend/specs/api/test.txt');
|
||||
const etherpadDoc = fs.readFileSync('tests/backend/specs/api/test.etherpad');
|
||||
const wordDoc = fs.readFileSync('tests/backend/specs/api/test.doc');
|
||||
const wordXDoc = fs.readFileSync('tests/backend/specs/api/test.docx');
|
||||
const odtDoc = fs.readFileSync('tests/backend/specs/api/test.odt');
|
||||
const pdfDoc = fs.readFileSync('tests/backend/specs/api/test.pdf');
|
||||
|
||||
let agent;
|
||||
const apiKey = common.apiKey;
|
||||
|
|
|
@ -46,10 +46,10 @@ describe(__filename, function () {
|
|||
const backups = {};
|
||||
const fantasyEncoding = 'brainwaves'; // non-working encoding until https://github.com/visionmedia/superagent/pull/1560 is resolved
|
||||
const packages = [
|
||||
'/javascripts/lib/ep_etherpad-lite/static/js/ace2_common.js?callback=require.define',
|
||||
'/javascripts/lib/ep_etherpad-lite/static/js/ace2_inner.js?callback=require.define',
|
||||
'/javascripts/lib/ep_etherpad-lite/static/js/pad.js?callback=require.define',
|
||||
'/javascripts/lib/ep_etherpad-lite/static/js/timeslider.js?callback=require.define',
|
||||
'/javascripts/lib/static/js/ace2_common.js?callback=require.define',
|
||||
'/javascripts/lib/static/js/ace2_inner.js?callback=require.define',
|
||||
'/javascripts/lib/static/js/pad.js?callback=require.define',
|
||||
'/javascripts/lib/static/js/timeslider.js?callback=require.define',
|
||||
];
|
||||
|
||||
before(async function () {
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
const assert = require('assert').strict;
|
||||
const common = require('../common');
|
||||
const io = require('ep_etherpad-lite/node_modules/socket.io-client');
|
||||
const padManager = require('ep_etherpad-lite/node/db/PadManager');
|
||||
const plugins = require('ep_etherpad-lite/static/js/pluginfw/plugin_defs');
|
||||
const setCookieParser = require('ep_etherpad-lite/node_modules/set-cookie-parser');
|
||||
const settings = require('ep_etherpad-lite/node/utils/Settings');
|
||||
const io = require('socket.io-client');
|
||||
const padManager = require('../../../src/node/db/PadManager');
|
||||
const plugins = require('../../../src/static/js/pluginfw/plugin_defs');
|
||||
const setCookieParser = require('set-cookie-parser');
|
||||
const settings = require('../../../src/node/utils/Settings');
|
||||
|
||||
const logger = common.logger;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const common = require('../common');
|
||||
const settings = require('ep_etherpad-lite/node/utils/Settings');
|
||||
const settings = require('../../../src/node/utils/Settings');
|
||||
|
||||
describe(__filename, function () {
|
||||
let agent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue