concept this global hook in category javascript
appears as: This global hook

This is an excerpt from Manning's book Testing JavaScript Applications.
Listing 4.55. server.js
const fetch = require("isomorphic-fetch"); // ... router.get("/inventory/:itemName", async ctx => { const response = await fetch( #1 `http://recipepuppy.com/api?i=${itemName}` ); const { title, href, results: recipes } = await response.json(); const inventoryItem = await db #2 .select() .from("inventory") .first(); ctx.body = { #3 ...inventoryItem, info: `Data obtained from ${title} - ${href}`, recipes }; });