diff --git a/app/soapbox/components/__tests__/status.test.tsx b/app/soapbox/components/__tests__/status.test.tsx index ea9d04d980..d2ec39ca27 100644 --- a/app/soapbox/components/__tests__/status.test.tsx +++ b/app/soapbox/components/__tests__/status.test.tsx @@ -1,12 +1,14 @@ import React from 'react'; -import { render, screen, rootState } from '../../jest/test-helpers'; -import { normalizeStatus, normalizeAccount } from '../../normalizers'; +import { buildAccount } from 'soapbox/jest/factory'; +import { render, screen, rootState } from 'soapbox/jest/test-helpers'; +import { normalizeStatus } from 'soapbox/normalizers'; + import Status from '../status'; import type { ReducerStatus } from 'soapbox/reducers/statuses'; -const account = normalizeAccount({ +const account = buildAccount({ id: '1', acct: 'alex', }); @@ -34,7 +36,7 @@ describe('', () => { }); it('is not rendered if status is under review', () => { - const inReviewStatus = normalizeStatus({ ...status, visibility: 'self' }); + const inReviewStatus = status.set('visibility', 'self'); render(, undefined, state); expect(screen.queryAllByTestId('status-action-bar')).toHaveLength(0); });