mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
sessions: explicitly mention this is an Express Session not a SocketIO Session
This commit is contained in:
parent
fd285c7748
commit
2d3f51fe89
1 changed files with 5 additions and 5 deletions
|
@ -6,11 +6,11 @@ const settings = require('../../../../node/utils/Settings');
|
|||
const fs = require('fs');
|
||||
let agent;
|
||||
|
||||
const shouldCreateSession = [
|
||||
const shouldCreateExpressSession = [
|
||||
'/p/foo',
|
||||
'/p/foo/export/html',
|
||||
];
|
||||
const shouldNotCreateSession = [
|
||||
const shouldNotCreateExpressSession = [
|
||||
'/',
|
||||
'/api/',
|
||||
'/favicon.ico',
|
||||
|
@ -29,12 +29,12 @@ const getDatabaseSize = () => {
|
|||
describe(__filename, function () {
|
||||
before(async function () { agent = await common.init(); });
|
||||
|
||||
describe('Session Creation on endpoint', function () {
|
||||
describe('Express Session Creation on endpoint', function () {
|
||||
if (settings.dbType !== 'dirty') this.skip;
|
||||
|
||||
this.timeout(100);
|
||||
|
||||
for (const endpoint of shouldNotCreateSession) {
|
||||
for (const endpoint of shouldNotCreateExpressSession) {
|
||||
it(endpoint, async function () {
|
||||
const previousCount = getDatabaseSize();
|
||||
await agent.get(endpoint)
|
||||
|
@ -46,7 +46,7 @@ describe(__filename, function () {
|
|||
});
|
||||
}
|
||||
|
||||
for (const endpoint of shouldCreateSession) {
|
||||
for (const endpoint of shouldCreateExpressSession) {
|
||||
const previousCount = getDatabaseSize();
|
||||
it(endpoint, async function () {
|
||||
await agent.get(endpoint)
|
||||
|
|
Loading…
Reference in a new issue