« get me outta code hell

test: Track.color: mock fake album for updated wikiData validator - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-18 20:18:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-18 20:20:06 -0400
commita6dedb0b17f514e408919240c060072df2b179dd (patch)
tree7af06e9a22661747124365157d0aeeb8380d19ae
parent84c367c27ca82938c61b696ef24601d1cff9b2b3 (diff)
test: Track.color: mock fake album for updated wikiData validator
-rw-r--r--test/unit/data/things/track.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/data/things/track.js b/test/unit/data/things/track.js
index 806efbf1..51f86070 100644
--- a/test/unit/data/things/track.js
+++ b/test/unit/data/things/track.js
@@ -189,13 +189,14 @@ t.test(`Track.color`, t => {
   // connection breaks for some future reason (with the album still present),
   // Track.color should still inherit directly from the album.
   wikiData.albumData = [
-    new Proxy({
+    {
+      constructor: {[Thing.referenceType]: 'album'},
       color: '#abcdef',
       tracks: [track],
       trackSections: [
         {color: '#baaaad', tracks: []},
       ],
-    }, {getPrototypeOf: () => Album.prototype}),
+    },
   ];
 
   linkWikiDataArrays();