ElectronicBabylonianLiterature/ebl-frontend

View on GitHub
src/corpus/ui/Reconstruction.test.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react'
import { render, screen } from '@testing-library/react'
import Reconstruction from './Reconstruction'
import { chapter } from 'test-support/test-corpus-text'

const line = chapter.lines[0].variants[0]

beforeEach(() => {
  render(<Reconstruction line={line} />)
})

test('reconstruction', () => {
  expect(screen.getByText(line.reconstruction)).toBeVisible()
})