Merge pull request #16216 from Bouncey/fix/backendSources
fix(backend): Unable to submit backend projectpull/16221/head
commit
2b397d7feb
|
@ -60,7 +60,7 @@ export function buildBackendChallenge(state) {
|
|||
)
|
||||
.map(([ frameRunner, jQuery ]) => ({
|
||||
build: jQuery + frameRunner,
|
||||
source: { url },
|
||||
sources: { url },
|
||||
checkChallengePayload: { solution: url }
|
||||
}));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue