Fix(tests): Typo in object tests

This commit is contained in:
Berkeley Martinez
2016-09-29 11:58:31 -07:00
parent 9de10a0063
commit ad73222926

View File

@@ -36,7 +36,7 @@ export function getFileKey({ challengeType }) {
export function createTests({ tests = [] }) {
return tests
.map(test => {
if (typeof tests === 'string') {
if (typeof test === 'string') {
return {
text: ('' + test).split('message: ').pop().replace(/\'\);/g, ''),
testString: test