From 64b4a5e6355872c49429f1d19c3403277d032b6c Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Jun 2023 17:55:00 -0300 Subject: 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. --- test/unit/content/dependencies/linkContribution.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/unit') 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, }); -- cgit 1.3.0-6-gf8a5