« get me outta code hell

content: generateIconForURL -> linkExternalAsIcon - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-03-29 18:05:32 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-03-29 18:05:32 -0300
commitbee8e687a3e332203d31ad88a107f1ec9fa125aa (patch)
treec907e481361e5952ca14c67f499aef5c6d3ac567 /test/unit/content/dependencies
parent0e7e812ac63813c04e4e4f0cb00f734a6f44dc46 (diff)
content: generateIconForURL -> linkExternalAsIcon
Diffstat (limited to 'test/unit/content/dependencies')
-rw-r--r--test/unit/content/dependencies/generateContributionLinks.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/content/dependencies/generateContributionLinks.js b/test/unit/content/dependencies/generateContributionLinks.js
index 5ed8f782..a2f02ac7 100644
--- a/test/unit/content/dependencies/generateContributionLinks.js
+++ b/test/unit/content/dependencies/generateContributionLinks.js
@@ -48,13 +48,13 @@ t.test('generateContributionLinks (unit)', async t => {
             .repeat(3),
         },
 
-        generateIconForURL: {
-          data: mock.function('generateIconForURL.data', () => ({}))
+        linkExternalAsIcon: {
+          data: mock.function('linkExternalAsIcon.data', () => ({}))
             .args([artist1.urls[0]]).next()
             .args([artist3.urls[0]]).next()
             .args([artist3.urls[1]]),
 
-          generate: mock.function('generateIconForURL.generate', () => 'icon')
+          generate: mock.function('linkExternalAsIcon.generate', () => 'icon')
             .repeat(3),
         }
       })),
@@ -89,11 +89,11 @@ t.test('generateContributionLinks (unit)', async t => {
             .repeat(3),
         },
 
-        generateIconForURL: {
-          data: mock.function('generateIconForURL.data', () => ({}))
+        linkExternalAsIcon: {
+          data: mock.function('linkExternalAsIcon.data', () => ({}))
             .neverCalled(),
 
-          generate: mock.function('generateIconForURL.generate', () => 'icon')
+          generate: mock.function('linkExternalAsIcon.generate', () => 'icon')
             .neverCalled(),
         },
       })),