diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-04 13:44:07 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-04 13:47:47 -0300 |
commit | 762be9d8078a2fd19a460b7172129a9575974f1f (patch) | |
tree | c74fe2403e824cc4f9243cb464f800cb0ac81fa0 /test/snapshot/linkTemplate.js | |
parent | 21b6f42b31c39bfc3ee20788d7d055d7afdb5c21 (diff) |
test: tidy & add descriptions for existing snapshot tests
Diffstat (limited to 'test/snapshot/linkTemplate.js')
-rw-r--r-- | test/snapshot/linkTemplate.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/snapshot/linkTemplate.js b/test/snapshot/linkTemplate.js index 10321897..07c3b501 100644 --- a/test/snapshot/linkTemplate.js +++ b/test/snapshot/linkTemplate.js @@ -1,10 +1,10 @@ import t from 'tap'; import {testContentFunctions} from '../lib/content-function.js'; -testContentFunctions(t, 'linkTemplate', async (t, evaluate) => { +testContentFunctions(t, 'linkTemplate (snapshot)', async (t, evaluate) => { await evaluate.load(); - evaluate.snapshot({ + evaluate.snapshot('fill many slots', { name: 'linkTemplate', extraDependencies: { getColors: c => ({primary: c + 'ff', dim: c + '77'}), @@ -17,7 +17,7 @@ testContentFunctions(t, 'linkTemplate', async (t, evaluate) => { .slot('attributes', {class: 'dog', id: 'cat1'}) .slot('content', 'My Cool Link')); - evaluate.snapshot({ + evaluate.snapshot('fill path slot', { name: 'linkTemplate', extraDependencies: { to: (...path) => '/c*lzone/' + path.join('/') + '/', |