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/linkExternalFlash.js | |
parent | 21b6f42b31c39bfc3ee20788d7d055d7afdb5c21 (diff) |
test: tidy & add descriptions for existing snapshot tests
Diffstat (limited to 'test/snapshot/linkExternalFlash.js')
-rw-r--r-- | test/snapshot/linkExternalFlash.js | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/test/snapshot/linkExternalFlash.js b/test/snapshot/linkExternalFlash.js index 3f63760f..7bb86c6a 100644 --- a/test/snapshot/linkExternalFlash.js +++ b/test/snapshot/linkExternalFlash.js @@ -4,28 +4,21 @@ import {testContentFunctions} from '../lib/content-function.js'; testContentFunctions(t, 'linkExternalFlash (snapshot)', async (t, evaluate) => { await evaluate.load(); - evaluate.snapshot({ + evaluate.snapshot('basic behavior', { name: 'linkExternalFlash', - args: ['https://homestuck.com/story/4109/', {page: '4109'}], + multiple: [ + {args: ['https://homestuck.com/story/4109/', {page: '4109'}]}, + {args: ['https://youtu.be/FDt-SLyEcjI', {page: '4109'}]}, + {args: ['https://www.bgreco.net/hsflash/006009.html', {page: '4109'}]}, + {args: ['https://www.newgrounds.com/portal/view/582345', {page: '4109'}]}, + ], }); - evaluate.snapshot({ + evaluate.snapshot('secret page', { name: 'linkExternalFlash', - args: ['https://homestuck.com/story/pony/', {page: 'pony'}], + multiple: [ + {args: ['https://homestuck.com/story/pony/', {page: 'pony'}]}, + {args: ['https://youtu.be/USB1pj6hAjU', {page: 'pony'}]}, + ], }); - - evaluate.snapshot({ - name: 'linkExternalFlash', - args: ['https://youtu.be/FDt-SLyEcjI', {page: '4109'}], - }); - - evaluate.snapshot({ - name: 'linkExternalFlash', - args: ['https://www.bgreco.net/hsflash/006009.html', {page: '4109'}], - }); - - evaluate.snapshot({ - name: 'linkExternalFlash', - args: ['https://www.newgrounds.com/portal/view/582345', {page: '4109'}], - }) }); |