Merge pull request #16216 from Bouncey/fix/backendSources

fix(backend): Unable to submit backend project
pull/16221/head
Berkeley Martinez 2017-12-18 18:05:30 -08:00 committed by GitHub
commit 2b397d7feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -100,7 +100,7 @@ const writeTestDepsToDocument = frameReady => ctx => {
};
// default for classic challenges
// 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
tests.__getUserInput = fileName => _.toString(sources[fileName]);
tests.__checkChallengePayload = checkChallengePayload;