mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
24 lines
693 B
JavaScript
24 lines
693 B
JavaScript
'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');
|
|
});
|
|
});
|