levels tests

This commit is contained in:
realaravinth
2021-05-06 17:22:25 +05:30
parent 6069509504
commit 20ee5c35c6
8 changed files with 184 additions and 72 deletions

View File

@@ -23,13 +23,8 @@ import getLevelFields from './getLevelFields';
* its contents
* */
const validateLevel = (id: number) => {
const level = getLevelFields(id);
if (level === null) {
return false;
}
try {
const level = getLevelFields(id);
LEVELS.add(level);
return true;
} catch (e) {