This commit is contained in:
Николай Вигдоров
2025-03-08 15:08:56 +03:00
parent d8aab58f8e
commit ebcef037fa
7 changed files with 15552 additions and 3 deletions

7
src/consts.test.js Normal file
View File

@ -0,0 +1,7 @@
import {DIFFICULTY, START_BUTTON_EASY_ID} from './consts';
describe('getDifficultyById', () => {
it('should return correct difficulty', () => {
expect(DIFFICULTY[START_BUTTON_EASY_ID]).toBe(10);
});
});

View File

@ -130,7 +130,7 @@ const getExample = () => {
};
const getDifficultyById = id => {
export const getDifficultyById = id => {
return DIFFICULTY[id];
};