Add test for MissionLaunchStatusBadge
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
import { MantineProvider } from '@mantine/core';
|
||||||
|
import { render, screen } from '@testing-library/react';
|
||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
import { MissionLaunchStatusBadge } from './MissionLaunchStatusBadge';
|
||||||
|
|
||||||
|
describe('MissionLaunchStatusBadge', () => {
|
||||||
|
it('shows the status label', () => {
|
||||||
|
render(
|
||||||
|
<MantineProvider>
|
||||||
|
<MissionLaunchStatusBadge status="Cancelled" />
|
||||||
|
</MantineProvider>,
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(screen.getByText('Cancelled')).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user