« get me outta code hell

data, test: boldfaceArtist -> artistDisplayText - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-14 23:36:37 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-14 23:36:37 -0400
commitf754a8d9187e435a761db31b5053aa2e7ba22e13 (patch)
tree0c221afa834b794aa3de92bceb093e80c087d4b2 /test
parent362dc0619b93d74ad34df1bfbfd9ebc632fa5156 (diff)
data, test: boldfaceArtist -> artistDisplayText
Diffstat (limited to 'test')
-rw-r--r--test/unit/data/composite/wiki-data/withParsedCommentaryEntries.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/data/composite/wiki-data/withParsedCommentaryEntries.js b/test/unit/data/composite/wiki-data/withParsedCommentaryEntries.js
index 7b456449..50570de6 100644
--- a/test/unit/data/composite/wiki-data/withParsedCommentaryEntries.js
+++ b/test/unit/data/composite/wiki-data/withParsedCommentaryEntries.js
@@ -50,7 +50,7 @@ t.test(`withParsedCommentaryEntries: basic behavior`, t => {
   }), [
     {
       artist: artist1,
-      boldfaceArtist: false,
+      artistDisplayText: null,
       annotation: null,
       date: null,
       body: `Some commentary.\nVery cool.`,
@@ -60,40 +60,40 @@ t.test(`withParsedCommentaryEntries: basic behavior`, t => {
   t.match(composite.expose.compute({
     artistData,
     from:
-      `<i>Mobius Trip:</i> (music, art, 12 January 2015)\n` +
+      `<i>Mobius Trip|Moo-bius Trip:</i> (music, art, 12 January 2015)\n` +
       `First commentary entry.\n` +
       `Very cool.\n` +
-      `<i><b>Hadron Kaleido:</b></i> (moral support, 4/4/2022)\n` +
+      `<i>Hadron Kaleido|<b>[[artist:hadron-kaleido|The Ol' Hadron]]</b>:</i> (moral support, 4/4/2022)\n` +
       `Second commentary entry. Yes. So cool.\n` +
-      `<i>Mystery Artist:</i> (pingas)\n` +
+      `<i>Mystery Artist:</i> (pingas, August 25, 2023)\n` +
       `Oh no.. Oh dear...\n` +
       `<i>Mobius Trip:</i>\n` +
       `And back around we go.`,
   }), [
     {
       artist: artist1,
-      boldfaceArtist: false,
+      artistDisplayText: `Moo-bius Trip`,
       annotation: `music, art`,
       date: new Date('12 January 2015'),
       body: `First commentary entry.\nVery cool.`,
     },
     {
       artist: artist2,
-      boldfaceArtist: true,
+      artistDisplayText: `<b>[[artist:hadron-kaleido|The Ol' Hadron]]</b>`,
       annotation: `moral support`,
       date: new Date('4 April 2022'),
       body: `Second commentary entry. Yes. So cool.`,
     },
     {
       artist: null,
-      boldfaceArtist: false,
+      artistDisplayText: null,
       annotation: `pingas`,
-      date: null,
+      date: new Date('25 August 2023'),
       body: `Oh no.. Oh dear...`,
     },
     {
       artist: artist1,
-      boldfaceArtist: false,
+      artistDisplayText: null,
       annotation: null,
       date: null,
       body: `And back around we go.`,