projects
/
squeep-authentication-module
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, clean up lint issues
[squeep-authentication-module]
/
test
/
lib
/
authenticator.js
diff --git
a/test/lib/authenticator.js
b/test/lib/authenticator.js
index 84ee1c5332564cec56b6b6e616c1f5b743a18475..0e55094603e4e9eac0d718c8244633f56ba27891 100644
(file)
--- a/
test/lib/authenticator.js
+++ b/
test/lib/authenticator.js
@@
-1,9
+1,6
@@
-/* eslint-env mocha */
-/* eslint-disable sonarjs/no-duplicate-string */
-/* eslint-disable jsdoc/require-jsdoc */
'use strict';
'use strict';
-const assert = require('assert');
+const assert = require('
node:
assert');
const sinon = require('sinon');
const Authenticator = require('../../lib/authenticator');
const stubLogger = require('../stub-logger');
const sinon = require('sinon');
const Authenticator = require('../../lib/authenticator');
const stubLogger = require('../stub-logger');
@@
-53,6
+50,11
@@
describe('Authenticator', function () {
authenticator = new Authenticator(stubLogger, stubDb, options);
});
authenticator = new Authenticator(stubLogger, stubDb, options);
});
+ it('covers invalid sameSite', function () {
+ options.authenticator.sessionCookieSameSite = 'Sometimes';
+ assert.throws(() => new Authenticator(stubLogger, stubDb, options), RangeError);
+ });
+
describe('createIdentifier', function () {
let dbCtx;
beforeEach(function () {
describe('createIdentifier', function () {
let dbCtx;
beforeEach(function () {