(href, context)
| 73 | } |
| 74 | |
| 75 | async function getNewTitle(href, context) { |
| 76 | const page = findPage(href, context.pages, context.redirects) |
| 77 | if (!page) { |
| 78 | throw new Error(`Unable to find Page by href '${href}'`) |
| 79 | } |
| 80 | return await page.renderProp('title', context, { textOnly: true }) |
| 81 | } |
| 82 | |
| 83 | function getNewHref(node, languageCode, version) { |
| 84 | const { href } = node.properties |
no test coverage detected