« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshot')
-rw-r--r--test/snapshot/linkExternalFlash.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/snapshot/linkExternalFlash.js b/test/snapshot/linkExternalFlash.js
new file mode 100644
index 00000000..3f63760f
--- /dev/null
+++ b/test/snapshot/linkExternalFlash.js
@@ -0,0 +1,31 @@
+import t from 'tap';
+import {testContentFunctions} from '../lib/content-function.js';
+
+testContentFunctions(t, 'linkExternalFlash (snapshot)', async (t, evaluate) => {
+  await evaluate.load();
+
+  evaluate.snapshot({
+    name: 'linkExternalFlash',
+    args: ['https://homestuck.com/story/4109/', {page: '4109'}],
+  });
+
+  evaluate.snapshot({
+    name: 'linkExternalFlash',
+    args: ['https://homestuck.com/story/pony/', {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'}],
+  })
+});