diff --git a/src/components/Crossword/Crossword.test.tsx b/src/components/Crossword/Crossword.test.tsx index 9dae20e..028fab1 100644 --- a/src/components/Crossword/Crossword.test.tsx +++ b/src/components/Crossword/Crossword.test.tsx @@ -8,12 +8,13 @@ import validData from './../../testData/test.valid.1'; import { act, fireEvent, render, screen } from './../../utils/rtl'; import Crossword from './Crossword'; -const debounceTime = 1000; +const DEBOUNCE_TIME = 1000; test('it renders', () => { render( { render( { render( { render( { render( { fireEvent.keyDown(grid, { key: 'A', code: 'KeyA' }); act(() => { - jest.advanceTimersByTime(debounceTime); + jest.advanceTimersByTime(DEBOUNCE_TIME); }); expect(saveGrid).toHaveBeenCalledTimes(2); @@ -142,6 +147,7 @@ test('it always shows sticky clue', async () => { render( { render( { const { rerender } = render( { rerender(