From 6a2afbd8597cc382336671074bfe26a3a8979293 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 26 Jul 2022 15:52:05 +0200 Subject: [PATCH] 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 --- ghost/mw-session-from-token/test/SessionFromToken.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/mw-session-from-token/test/SessionFromToken.test.js b/ghost/mw-session-from-token/test/SessionFromToken.test.js index aa7598323e..52d2e1285f 100644 --- a/ghost/mw-session-from-token/test/SessionFromToken.test.js +++ b/ghost/mw-session-from-token/test/SessionFromToken.test.js @@ -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 () {