diff --git a/ghost/magic-link/test/index.test.js b/ghost/magic-link/test/index.test.js index 7416337593..2ae5c59357 100644 --- a/ghost/magic-link/test/index.test.js +++ b/ghost/magic-link/test/index.test.js @@ -1,7 +1,6 @@ const should = require('should'); const sinon = require('sinon'); const MagicLink = require('../'); -const JWTTokenProvider = require('../JWTTokenProvider'); const crypto = require('crypto'); const sandbox = sinon.createSandbox(); @@ -15,7 +14,7 @@ describe('MagicLink', function () { describe('#sendMagicLink', function () { it('Sends an email to the user with a link generated from getSigninURL(token, type)', async function () { const options = { - tokenProvider: new JWTTokenProvider(secret), + tokenProvider: new MagicLink.JWTTokenProvider(secret), getSigninURL: sandbox.stub().returns('FAKEURL'), getText: sandbox.stub().returns('SOMETEXT'), getHTML: sandbox.stub().returns('SOMEHTML'),