Merge pull request #16216 from Bouncey/fix/backendSources
fix(backend): Unable to submit backend project
This commit is contained in:
@ -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 }
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user