« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/data/things/track.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/data/things/track.js b/test/unit/data/things/track.js
index 08e91732..dbc8434f 100644
--- a/test/unit/data/things/track.js
+++ b/test/unit/data/things/track.js
@@ -97,7 +97,7 @@ t.test(`Track.album`, t => {
 });
 
 t.test(`Track.color`, t => {
-  t.plan(3);
+  t.plan(4);
 
   const {track, album} = stubTrackAndAlbum();
 
@@ -119,6 +119,9 @@ t.test(`Track.color`, t => {
 
   t.equal(track.color, '#123456',
     `color #3: is own value`);
+
+  t.throws(() => { track.color = '#aeiouw'; }, TypeError,
+    `color #4: must be set to valid color`);
 });
 
 t.test(`Track.coverArtDate`, t => {