Fix(Challenges): get user code (#16187)
* fix(Challenges.): Prevent source from being overwritten * fix(Challenges): Tests should use name * fix(seed/react): Namespace tests for now
This commit is contained in:
committed by
Quincy Larson
parent
375442d365
commit
d3bbf27dab
@@ -101,7 +101,8 @@ const writeTestDepsToDocument = frameReady => ctx => {
|
||||
// default for classic challenges
|
||||
// should not be used for modern
|
||||
tests.__source = sources['index'] || '';
|
||||
tests.__getUserInput = key => sources[key];
|
||||
// provide the file name and get the original source
|
||||
tests.__getUserInput = fileName => _.toString(sources[fileName]);
|
||||
tests.__checkChallengePayload = checkChallengePayload;
|
||||
tests.__frameReady = frameReady;
|
||||
return ctx;
|
||||
|
Reference in New Issue
Block a user