etherpad-lite/src/tests/backend/specs/pads-with-spaces.js

25 lines
693 B
JavaScript
Raw Normal View History

2021-02-28 04:34:43 +01:00
'use strict';
const common = require('../common');
const assert = require('../assert-legacy').strict;
let agent;
describe(__filename, function () {
before(async function () {
agent = await common.init();
});
it('supports pads with spaces, regression test for #4883', async function () {
await agent.get('/p/pads with spaces')
.expect(302)
.expect('location', 'pads_with_spaces');
});
it('supports pads with spaces and query, regression test for #4883', async function () {
await agent.get('/p/pads with spaces?showChat=true&noColors=false')
.expect(302)
.expect('location', 'pads_with_spaces?showChat=true&noColors=false');
});
});