Add block scoping to challenges url
This commit is contained in:
@@ -61,7 +61,7 @@ export function getFileKey({ challengeType }) {
|
||||
export function createTests({ tests = [] }) {
|
||||
return tests
|
||||
.map(test => ({
|
||||
text: test.split('message: ').pop().replace(/\'\);/g, ''),
|
||||
text: ('' + test).split('message: ').pop().replace(/\'\);/g, ''),
|
||||
testString: test
|
||||
}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user