mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
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:
parent
9c616fe067
commit
6a2afbd859
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user