( block: string, title: string, helpCategory: string, challengeId: ObjectId )
| 66 | } |
| 67 | |
| 68 | async function createMetaJson( |
| 69 | block: string, |
| 70 | title: string, |
| 71 | helpCategory: string, |
| 72 | challengeId: ObjectId |
| 73 | ) { |
| 74 | const newMeta = getBaseMeta('Quiz'); |
| 75 | newMeta.dashedName = block; |
| 76 | newMeta.helpCategory = helpCategory; |
| 77 | |
| 78 | newMeta.challengeOrder = [{ id: challengeId.toString(), title: title }]; |
| 79 | |
| 80 | await writeBlockStructure(block, newMeta); |
| 81 | } |
| 82 | |
| 83 | async function createQuizChallenge({ |
| 84 | block, |
no test coverage detected