diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-26 20:38:27 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:02:52 -0300 |
commit | 12b8040b05e81a523ef59ba583dde751206f2e1d (patch) | |
tree | 79dea816bdcbce593cf919809f27ec57d600d4cf /test | |
parent | 25beb8731d756bfa4fe6babb9e4b0a707c7823e0 (diff) |
data, test: retain validator for Track.color
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/data/things/track.js | 5 |
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 => { |