From 2d3f51fe89b70591ea1f21d258679a2a1eee3f26 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 5 Mar 2021 07:53:57 +0000 Subject: [PATCH] sessions: explicitly mention this is an Express Session not a SocketIO Session --- .../backend/specs/api/httpRouteSessionCreation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tests/backend/specs/api/httpRouteSessionCreation.js b/src/tests/backend/specs/api/httpRouteSessionCreation.js index c19b3460e..0f0bd2e9e 100644 --- a/src/tests/backend/specs/api/httpRouteSessionCreation.js +++ b/src/tests/backend/specs/api/httpRouteSessionCreation.js @@ -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)