Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
716 Bytes
import React from 'react';
import { render, cleanup } from '@testing-library/react';
import { App } from '../App';
beforeEach(cleanup); // clean meeeeeeeeee!
describe('<App />', () => {
it('renders the application', () => {
const { queryByTestId } = render(<App />);
expect(queryByTestId('application')).toBeTruthy();
expect(
queryByTestId('application').classList.contains('darkmode')
).toBeFalsy();
});
it('renders the application using dark mode', () => {
const { queryByTestId } = render(<App darkModeDefault />);
expect(queryByTestId('application')).toBeTruthy();
expect(
queryByTestId('application').classList.contains('darkmode')
).toBeTruthy();
});
});