Remove all of the solutions from rehearsal
This commit is contained in:
@@ -5,37 +5,40 @@ import { Counter } from './counter';
|
||||
|
||||
import '@testing-library/jest-dom/vitest';
|
||||
|
||||
describe('Counter ', () => {
|
||||
describe.todo('Counter ', () => {
|
||||
beforeEach(() => {
|
||||
render(<Counter />);
|
||||
});
|
||||
|
||||
it('renders with an initial count of 0', () => {
|
||||
const countElement = screen.getByTestId('counter-count');
|
||||
expect(countElement).toHaveTextContent('0');
|
||||
});
|
||||
it('renders with an initial count of 0');
|
||||
|
||||
it('disables the "Decrement" and "Reset" buttons when the count is 0', () => {
|
||||
const decrementButton = screen.getByRole('button', { name: 'Decrement' });
|
||||
const resetButton = screen.getByRole('button', { name: 'Reset' });
|
||||
|
||||
expect(decrementButton).toBeDisabled();
|
||||
expect(resetButton).toBeDisabled();
|
||||
});
|
||||
it('disables the "Decrement" and "Reset" buttons when the count is 0');
|
||||
|
||||
it.todo('displays "days" when the count is 0', () => {});
|
||||
|
||||
it.todo('increments the count when the "Increment" button is clicked', async () => {});
|
||||
it.todo(
|
||||
'increments the count when the "Increment" button is clicked',
|
||||
async () => {},
|
||||
);
|
||||
|
||||
it.todo('displays "day" when the count is 1', async () => {});
|
||||
|
||||
it.todo('decrements the count when the "Decrement" button is clicked', async () => {});
|
||||
it.todo(
|
||||
'decrements the count when the "Decrement" button is clicked',
|
||||
async () => {},
|
||||
);
|
||||
|
||||
it.todo('does not allow decrementing below 0', async () => {});
|
||||
|
||||
it.todo('resets the count when the "Reset" button is clicked', async () => {});
|
||||
it.todo(
|
||||
'resets the count when the "Reset" button is clicked',
|
||||
async () => {},
|
||||
);
|
||||
|
||||
it.todo('disables the "Decrement" and "Reset" buttons when the count is 0', () => {});
|
||||
it.todo(
|
||||
'disables the "Decrement" and "Reset" buttons when the count is 0',
|
||||
() => {},
|
||||
);
|
||||
|
||||
it.todo('updates the document title based on the count', async () => {});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user