fix test
This commit is contained in:
parent
e4ddf9999e
commit
2845533271
1 changed files with 12 additions and 7 deletions
|
|
@ -1,10 +1,15 @@
|
||||||
const processHelp = definition => {
|
const
|
||||||
// TODO: rely on project configuration for docs site location
|
// TODO: rely on project configuration for docs site location
|
||||||
const
|
DOCS_BLOCKS_ROOT = "https://adafruit.github.io/io-actions/blocks",
|
||||||
docsBlocksRoot = "https://adafruit.github.io/io-actions/blocks",
|
|
||||||
thisBlockPredicate = definition.definitionPath.slice(0, -3)
|
|
||||||
|
|
||||||
return { helpUrl: `${docsBlocksRoot}/${thisBlockPredicate}` }
|
processHelp = definition => {
|
||||||
}
|
if (!definition.definitionPath) { return {} }
|
||||||
|
|
||||||
|
const thisBlockPredicate = definition.definitionPath.slice(0, -3)
|
||||||
|
|
||||||
|
return {
|
||||||
|
helpUrl: `${DOCS_BLOCKS_ROOT}/${thisBlockPredicate}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default processHelp
|
export default processHelp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue