« get me outta code hell

Merge pull request #117 from hsmusic/track-sections - 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-01-15 20:37:34 -0400
committerGitHub <noreply@github.com>2023-01-15 20:37:34 -0400
commit62dbb79342927cb1fe19651e33fcc27bc2804f6e (patch)
tree313c34f694337cae483047d9e06f0a410e44d155 /test
parent088a0d4ef42c90d6e81586601ee6cb37340b5bf4 (diff)
parent8093844a5460683b48219dba238b0e6e864dacd8 (diff)
Merge pull request #117 from hsmusic/track-sections
Change trackGroups to trackSections, avoid usage of a dedicated "domain-specific" Thing subclass
Diffstat (limited to 'test')
-rw-r--r--test/things.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/things.js b/test/things.js
index f36a4995..0d74b60d 100644
--- a/test/things.js
+++ b/test/things.js
@@ -9,9 +9,11 @@ import {
 
 function stubAlbum(tracks) {
   const album = new Album();
-  const trackGroup = new TrackGroup();
-  trackGroup.tracksByRef = tracks.map(t => Thing.getReference(t));
-  album.trackGroups = [trackGroup];
+  album.trackSections = [
+    {
+      tracksByRef: tracks.map(t => Thing.getReference(t)),
+    },
+  ];
   album.trackData = tracks;
   return album;
 }