Merge pull request #16216 from Bouncey/fix/backendSources

fix(backend): Unable to submit backend project
This commit is contained in:
Berkeley Martinez
2017-12-18 18:05:30 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ export function buildBackendChallenge(state) {
) )
.map(([ frameRunner, jQuery ]) => ({ .map(([ frameRunner, jQuery ]) => ({
build: jQuery + frameRunner, build: jQuery + frameRunner,
source: { url }, sources: { url },
checkChallengePayload: { solution: url } checkChallengePayload: { solution: url }
})); }));
} }

View File

@ -100,7 +100,7 @@ const writeTestDepsToDocument = frameReady => ctx => {
}; };
// default for classic challenges // default for classic challenges
// should not be used for modern // should not be used for modern
tests.__source = sources['index'] || ''; tests.__source = (sources && 'index' in sources) ? sources['index'] : '';
// provide the file name and get the original source // provide the file name and get the original source
tests.__getUserInput = fileName => _.toString(sources[fileName]); tests.__getUserInput = fileName => _.toString(sources[fileName]);
tests.__checkChallengePayload = checkChallengePayload; tests.__checkChallengePayload = checkChallengePayload;