removelevelbutton tests

This commit is contained in:
realaravinth
2021-05-07 17:55:42 +05:30
parent 7b3f910da7
commit 5b5a995f57
19 changed files with 1100 additions and 204 deletions

View File

@@ -18,9 +18,11 @@
import {Level} from './index';
import CONST from '../const';
import log from '../../../../../logger';
/** Fetches level from DOM using the ID passesd and validates */
const getLevelFields = (id: number) => {
console.log(`[getLevelFields]: id: ${id}`);
log.debug(`[getLevelFields]: id: ${id}`);
const visitorID = CONST.VISITOR_WITHOUT_LEVEL + id.toString();
const difficultyID = CONST.DIFFICULTY_WITHOUT_LEVEL + id.toString();
@@ -45,7 +47,7 @@ const getLevelFields = (id: number) => {
visitor_threshold,
};
console.debug(
log.debug(
`[getLevelFields.ts] visitor: ${visitor_threshold} difficulty: ${difficulty_factor}`,
);