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 75ae9a883547ba055f341a480104959d7fa50b7d..0e55094603e4e9eac0d718c8244633f56ba27891 100644
(file)
--- a/
test/lib/authenticator.js
+++ b/
test/lib/authenticator.js
@@
-1,6
+1,3
@@
-/* eslint-env mocha */
-/* eslint-disable sonarjs/no-duplicate-string */
-/* eslint-disable jsdoc/require-jsdoc */
'use strict';
const assert = require('node:assert');
'use strict';
const assert = require('node:assert');
@@
-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 () {