refactor: test output -> arrays (#39178)

This commit is contained in:
Oliver Eyton-Williams
2020-07-17 21:03:23 +02:00
committed by GitHub
parent bb019b2b0f
commit 7269894a86
5 changed files with 84 additions and 18 deletions

View File

@@ -46,7 +46,7 @@ const propTypes = {
initConsole: PropTypes.func.isRequired,
initTests: PropTypes.func.isRequired,
isSignedIn: PropTypes.bool,
output: PropTypes.string,
output: PropTypes.arrayOf(PropTypes.string),
pageContext: PropTypes.shape({
challengeMeta: PropTypes.object
}),
@@ -128,7 +128,7 @@ export class BackEnd extends Component {
},
pageContext: { challengeMeta }
} = this.props;
initConsole('');
initConsole();
initTests(tests);
updateChallengeMeta({ ...challengeMeta, title, challengeType });
challengeMounted(challengeMeta.id);