« get me outta code hell

Merge branch 'preview' of github.com:hsmusic/hsmusic-wiki into preview - 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 22:06:41 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-15 22:06:41 -0400
commitf8a38da3d747a15bd25e2759b819c1b83aaf0ba1 (patch)
treefc1b24bb02a6eabd610a022ae7cd6b72f5d1ad84 /test
parent8494805e994dd165cc8426723e799f06c8cbefcf (diff)
parent62dbb79342927cb1fe19651e33fcc27bc2804f6e (diff)
Merge branch 'preview' of github.com:hsmusic/hsmusic-wiki into preview
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;
 }