diff --git a/app/soapbox/features/ui/__tests__/index.test.tsx b/app/soapbox/features/ui/__tests__/index.test.tsx index 9f04f5fb8..f3e32f5f7 100644 --- a/app/soapbox/features/ui/__tests__/index.test.tsx +++ b/app/soapbox/features/ui/__tests__/index.test.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { render, screen, waitFor } from '../../../jest/test-helpers'; -import { normalizeAccount } from '../../../normalizers'; +import { normalizeAccount, normalizeInstance } from '../../../normalizers'; import UI from '../index'; import { WrappedRoute } from '../util/react-router-helpers'; @@ -33,6 +33,7 @@ describe('', () => { avatar: 'test.jpg', }), }), + instance: normalizeInstance({ registrations: true }), }; }); diff --git a/app/soapbox/features/ui/components/__tests__/cta-banner.test.tsx b/app/soapbox/features/ui/components/__tests__/cta-banner.test.tsx index 4ab6bdd4b..90ba1dcc3 100644 --- a/app/soapbox/features/ui/components/__tests__/cta-banner.test.tsx +++ b/app/soapbox/features/ui/components/__tests__/cta-banner.test.tsx @@ -7,7 +7,9 @@ import CtaBanner from '../cta-banner'; describe('', () => { it('renders the banner', () => { - render(); + const store = { instance: normalizeInstance({ registrations: true }) }; + + render(, undefined, store); expect(screen.getByTestId('cta-banner')).toHaveTextContent(/sign up/i); });