diff --git a/src/components/ProtoLang.test.js b/src/components/ProtoLang.test.js new file mode 100644 index 0000000..8dca810 --- /dev/null +++ b/src/components/ProtoLang.test.js @@ -0,0 +1,20 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; +import ProtoLang from './ProtoLang'; +import renderer from 'react-test-renderer'; +import { exportAllDeclaration } from '@babel/types'; +import {render} from '@testing-library/react'; +import extendExpect from '@testing-library/jest-dom/extend-expect' + +it('renders without crashing', () => { + const div = document.createElement('div'); + ReactDOM.render(, div); + ReactDOM.unmountComponentAtNode(div); +}); + +describe('ProtoLang', () => { + it('renders the correct title', () => { + const { getByTestId } = render(); + expect(getByTestId('ProtoLang')).toHaveTextContent('Proto Language Lexicon'); + }) +}) \ No newline at end of file