diff --git a/ghost/magic-link/test/index.test.js b/ghost/magic-link/test/index.test.js index 2ae5c59357..dafd243b17 100644 --- a/ghost/magic-link/test/index.test.js +++ b/ghost/magic-link/test/index.test.js @@ -57,7 +57,7 @@ describe('MagicLink', function () { describe('#getDataFromToken', function () { it('Returns the user data which from the token that was encoded by #sendMagicLink', 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'),