Changed import path for mw-session-from-token tests

- this has the nice side effect of increasing code coverage by checking
  the exports of the package
This commit is contained in:
Daniel Lockyer 2022-07-26 15:52:05 +02:00
parent 9c616fe067
commit 6a2afbd859
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -1,7 +1,7 @@
const express = require('express');
const sinon = require('sinon');
const should = require('should');
const SessionFromToken = require('../lib/SessionFromToken');
const SessionFromToken = require('../');
describe('SessionFromToken', function () {
it('Parses the request, matches the user to the token, sets the user on req.user and calls createSession', async function () {