fix: allow log in testString, restrict test errors
Console logs from testString get reported and test errors are sent to the dev console (JS). challenge building is only attempted if there is a build function to do so. Various functions have been renamed to better reflect what they do.
This commit is contained in:
committed by
mrugesh
parent
9194b7731b
commit
febba792e7
@@ -71,6 +71,11 @@ const buildFunctions = {
|
||||
[challengeTypes.backEndProject]: buildBackendChallenge
|
||||
};
|
||||
|
||||
export function canBuildChallenge(challengeData) {
|
||||
const { challengeType } = challengeData;
|
||||
return buildFunctions.hasOwnProperty(challengeType);
|
||||
}
|
||||
|
||||
export async function buildChallenge(challengeData) {
|
||||
const { challengeType } = challengeData;
|
||||
let build = buildFunctions[challengeType];
|
||||
|
Reference in New Issue
Block a user