Renames
This commit is contained in:
parent
710083d9fc
commit
f94e1e105a
File diff suppressed because it is too large
Load Diff
|
@ -115,7 +115,7 @@ function getCommentInfo(file, func) {
|
|||
docs.example = docs.example.replace("product", "multiply")
|
||||
}
|
||||
docs.description = blocks[0].trim()
|
||||
docs.isBlock = docs.tags.some(el => el.title === "block")
|
||||
docs.requiresBlock = docs.tags.some(el => el.title === "block")
|
||||
return docs
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ function run() {
|
|||
numArgs: args.length,
|
||||
example: jsDocInfo.example || undefined,
|
||||
description: jsDocInfo.description,
|
||||
isBlock: jsDocInfo.isBlock,
|
||||
requiresBlock: jsDocInfo.requiresBlock,
|
||||
})
|
||||
}
|
||||
outputJSON[collection] = collectionInfo
|
||||
|
|
|
@ -58,8 +58,8 @@ const examples = collections.reduce((acc, collection) => {
|
|||
}
|
||||
}
|
||||
}
|
||||
const hasHbsBody = details.isBlock
|
||||
return [name, { hbs, js, hasHbsBody }]
|
||||
const requiresHbsBody = details.requiresBlock
|
||||
return [name, { hbs, js, requiresHbsBody }]
|
||||
})
|
||||
.filter(x => !!x)
|
||||
|
||||
|
@ -110,7 +110,9 @@ describe("manifest", () => {
|
|||
describe("can be parsed and run as js", () => {
|
||||
describe.each(Object.keys(examples))("%s", collection => {
|
||||
it.each(
|
||||
examples[collection].filter(([_, { hasHbsBody }]) => !hasHbsBody)
|
||||
examples[collection].filter(
|
||||
([_, { requiresHbsBody }]) => !requiresHbsBody
|
||||
)
|
||||
)("%s", async (_, { hbs, js }) => {
|
||||
const context = {
|
||||
double: i => i * 2,
|
||||
|
|
Loading…
Reference in New Issue