From 762be9d8078a2fd19a460b7172129a9575974f1f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 4 Apr 2023 13:44:07 -0300 Subject: test: tidy & add descriptions for existing snapshot tests --- test/snapshot/linkExternalFlash.js | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) (limited to 'test/snapshot/linkExternalFlash.js') 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'}], - }) }); -- cgit 1.3.0-6-gf8a5