Files
open_dbm/dashboard/src/App.test.js
Carla Floricel 05e52aa52b first commit
2022-08-02 09:52:52 -04:00

17 lines
453 B
JavaScript

import { cleanup, render, screen } from '@testing-library/react';
import App from './App';
afterEach(cleanup)
test('render cohort panel', () => {
render(<App />);
const cohortElem = screen.getByText("Cohort");
expect(cohortElem).toHaveClass("btn-primary");
});
test('render individual panel', () => {
render(<App />);
const individualElem = screen.getByText("Individual");
expect(individualElem).toHaveClass("btn-secondary");
});