diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-10-22 13:57:09 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-02 22:25:48 -0300 |
commit | c24956785120cf0a3fd8897f10924d01d5c38ed9 (patch) | |
tree | e723b9f3faf9a58cb9aaf86cc000ba6cda16e407 /test/snapshot | |
parent | 6de2f25e926d385c6ec69e4518b56844db8a08c6 (diff) |
content, test: remove generatePreviousNextLinks
Diffstat (limited to 'test/snapshot')
-rw-r--r-- | test/snapshot/generatePreviousNextLinks.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/snapshot/generatePreviousNextLinks.js b/test/snapshot/generatePreviousNextLinks.js deleted file mode 100644 index 0d952f59..00000000 --- a/test/snapshot/generatePreviousNextLinks.js +++ /dev/null @@ -1,35 +0,0 @@ -import t from 'tap'; -import * as html from '#html'; -import {testContentFunctions} from '#test-lib'; - -testContentFunctions(t, 'generatePreviousNextLinks (snapshot)', async (t, evaluate) => { - await evaluate.load(); - - const quickSnapshot = (message, slots) => - evaluate.snapshot(message, { - name: 'generatePreviousNextLinks', - slots, - postprocess: template => template.content.join('\n'), - }); - - quickSnapshot('basic behavior', { - previousLink: evaluate.stubTemplate('previous'), - nextLink: evaluate.stubTemplate('next'), - }); - - quickSnapshot('previous missing', { - nextLink: evaluate.stubTemplate('next'), - }); - - quickSnapshot('next missing', { - previousLink: evaluate.stubTemplate('previous'), - }); - - quickSnapshot('neither link present', {}); - - quickSnapshot('disable id', { - previousLink: evaluate.stubTemplate('previous'), - nextLink: evaluate.stubTemplate('next'), - id: false, - }); -}); |