import React from 'react' import { render } from '@testing-library/react' import { GlobalNotification } from './GlobalNotification' describe('', () => { it('renders the positive notification correctly', () => { const { getByText } = render( This is my positive notification, ) expect(getByText('This is my positive notification')).toBeInTheDocument() }) it('removes the notification from the DOM', () => { const { getByRole } = render( This is my positive notification, ) expect(getByRole('button', { name: 'Close notification' })).toBeInTheDocument() }) })