Ghost/apps/admin-x-activitypub/test/unit/ListIndex.test.tsx
Djordje Vlaisavljevic 7a3bbfde10
Added ActivityPub playground (#20081)
ref MOM61

- Adds admin-x react app we’ll use as ActivityPub playground to the
sidebar nav behind the feature flag.
- Wired up routing to Ember
- Setup the project as `admin-x-activitypub`

---------

Co-authored-by: Ronald Langeveld <hi@ronaldlangeveld.com>
2024-04-25 16:44:29 +08:00

11 lines
327 B
TypeScript

import ListIndex from '../../src/components/ListIndex';
import {render, screen} from '@testing-library/react';
describe('Demo', function () {
it('renders a component', async function () {
render(<ListIndex/>);
expect(screen.getAllByRole('heading')[0].textContent).toEqual('ActivityPub Demo');
});
});