« get me outta code hell

trackGroups -> trackSections - 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-04 20:58:46 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-04 20:58:46 -0400
commit0698f5ec7bff107b5fd3881fda45a023dc6e8737 (patch)
tree064449c06aa35dc7f9796675ec6d19e6d1c6c554 /test
parentd4b5120dfd4af3bc1c6eb94f2b1859a189f7079c (diff)
trackGroups -> trackSections
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;
 }