diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:55:00 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-24 17:55:00 -0300 |
commit | 64b4a5e6355872c49429f1d19c3403277d032b6c (patch) | |
tree | f7224646e1e9027e57df895648d54ac132005677 /test/unit | |
parent | 0020a0de027d04607c7765c84b891750dc35f41b (diff) |
content: linkContribution: take standard {who, what} object
This is what's used for all contributions anyway, so no need to have every call to linkContribution manually destructure whatever contribution is being provided.
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/content/dependencies/linkContribution.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/content/dependencies/linkContribution.js b/test/unit/content/dependencies/linkContribution.js index 6f3150f7..bed2b6d5 100644 --- a/test/unit/content/dependencies/linkContribution.js +++ b/test/unit/content/dependencies/linkContribution.js @@ -64,9 +64,9 @@ t.test('generateContributionLinks (unit)', async t => { evaluate({ name: 'linkContribution', multiple: [ - {args: [who1, what1]}, - {args: [who2, what2]}, - {args: [who3, what3]}, + {args: [{who: who1, what: what1}]}, + {args: [{who: who2, what: what2}]}, + {args: [{who: who3, what: what3}]}, ], slots, }); @@ -112,9 +112,9 @@ t.test('generateContributionLinks (unit)', async t => { evaluate({ name: 'linkContribution', multiple: [ - {args: [who1, what1]}, - {args: [who2, what2]}, - {args: [who3, what3]}, + {args: [{who: who1, what: what1}]}, + {args: [{who: who2, what: what2}]}, + {args: [{who: who3, what: what3}]}, ], slots, }); |