update devDependencies, clean up lint issues
[squeep-authentication-module] / test / lib / session-manager.js
index 16243d732daf04ae6ea7400f137a35752e0af044..83ccf5821582d49cb8f29440074776d73dee52ad 100644 (file)
@@ -1,6 +1,3 @@
-/* eslint-env mocha */
-/* eslint-disable sonarjs/no-duplicate-string */
-
 'use strict';
 
 const assert = require('node:assert');
@@ -25,7 +22,7 @@ describe('SessionManager', function () {
       appendHeader: sinon.stub(),
     };
     ctx = {
-      cookie: '',
+      cookie: {},
       params: {},
       queryParams: {},
       parsedBody: {},
@@ -50,6 +47,8 @@ describe('SessionManager', function () {
   describe('constructor', function () {
     it('covers options', function () {
       delete options.dingus.proxyPrefix;
+      delete options.authenticator.secureAuthOnly;
+      options.authenticator.sessionCookieSameSite = 'None';
       manager = new SessionManager(stubLogger, stubAuthenticator, options);
     });
   }); // constructor