From ced600657ba4f711ff9d77e8a0c236416e4342db Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 20 Jun 2023 21:36:25 -0500 Subject: [PATCH] Fix auth test --- app/soapbox/reducers/__tests__/auth.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/soapbox/reducers/__tests__/auth.test.ts b/app/soapbox/reducers/__tests__/auth.test.ts index a548b9d88..9f5726f77 100644 --- a/app/soapbox/reducers/__tests__/auth.test.ts +++ b/app/soapbox/reducers/__tests__/auth.test.ts @@ -10,6 +10,7 @@ import { } from 'soapbox/actions/auth'; import { ME_FETCH_SKIP } from 'soapbox/actions/me'; import { MASTODON_PRELOAD_IMPORT } from 'soapbox/actions/preload'; +import { buildAccount } from 'soapbox/jest/factory'; import { AuthAppRecord, AuthTokenRecord, AuthUserRecord, ReducerRecord } from 'soapbox/reducers/auth'; import reducer from '../auth'; @@ -71,7 +72,7 @@ describe('auth reducer', () => { it('deletes the user', () => { const action = { type: AUTH_LOGGED_OUT, - account: fromJS({ url: 'https://gleasonator.com/users/alex' }), + account: buildAccount({ url: 'https://gleasonator.com/users/alex' }), }; const state = ReducerRecord({ @@ -100,7 +101,7 @@ describe('auth reducer', () => { const action = { type: AUTH_LOGGED_OUT, - account: fromJS({ url: 'https://gleasonator.com/users/alex' }), + account: buildAccount({ url: 'https://gleasonator.com/users/alex' }), }; const result = reducer(state, action);