diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-24 11:43:02 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-24 11:43:02 -0300 |
commit | f0a6720198c1bc22d25db929cbca2871c289f678 (patch) | |
tree | 3106b6bf2349d9c2701ec7bce4bd06ecf1eaab6e /test/unit/data/things/validators.js | |
parent | ba497c05bcb76bb48de70a2e1c890083c6f5dd58 (diff) |
test: misc adaptations for who/what -> artist/annotation
Diffstat (limited to 'test/unit/data/things/validators.js')
-rw-r--r-- | test/unit/data/things/validators.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/data/things/validators.js b/test/unit/data/things/validators.js index eeb2465e..3a217d6f 100644 --- a/test/unit/data/things/validators.js +++ b/test/unit/data/things/validators.js @@ -280,17 +280,17 @@ t.test('isContentString', t => { t.test('isContribution', t => { t.plan(4); - t.ok(isContribution({who: 'artist:toby-fox', what: 'Music'})); - t.ok(isContribution({who: 'Toby Fox'})); - t.throws(() => isContribution(({who: 'group:umspaf', what: 'Organizing'})), - {errors: /who/}); - t.throws(() => isContribution(({who: 'artist:toby-fox', what: 123})), - {errors: /what/}); + t.ok(isContribution({artist: 'artist:toby-fox', annotation: 'Music'})); + t.ok(isContribution({artist: 'Toby Fox'})); + t.throws(() => isContribution(({artist: 'group:umspaf', annotation: 'Organizing'})), + {errors: /artist/}); + t.throws(() => isContribution(({artist: 'artist:toby-fox', annotation: 123})), + {errors: /annotation/}); }); t.test('isContributionList', t => { t.plan(4); - t.ok(isContributionList([{who: 'Beavis'}, {who: 'Butthead', what: 'Wrangling'}])); + t.ok(isContributionList([{artist: 'Beavis'}, {artist: 'Butthead', annotation: 'Wrangling'}])); t.ok(isContributionList([])); t.throws(() => isContributionList(2)); t.throws(() => isContributionList(['Charlie', 'Woodstock'])); |