diff --git a/packages/string-templates/manifest.json b/packages/string-templates/manifest.json index ee03d75aa3..9dd8260350 100644 --- a/packages/string-templates/manifest.json +++ b/packages/string-templates/manifest.json @@ -1196,7 +1196,7 @@ "durationType" ], "numArgs": 2, - "example": "{{duration timeLeft \"seconds\"}} -> a few seconds", + "example": "{{duration 8 \"seconds\"}} -> a few seconds", "description": "

Produce a humanized duration left/until given an amount of time and the type of time measurement.

\n" } } diff --git a/packages/string-templates/test/manifest.spec.js b/packages/string-templates/test/manifest.spec.js index 90e23dcedd..36c1b1bd0b 100644 --- a/packages/string-templates/test/manifest.spec.js +++ b/packages/string-templates/test/manifest.spec.js @@ -1,6 +1,9 @@ const fs = require("fs") const { processString } = require("../src/index.cjs") +const tk = require("timekeeper") +tk.freeze("2021-01-21T12:00:00") + const manifest = JSON.parse( fs.readFileSync(require.resolve("../manifest.json"), "utf8") )