Skip to content

Commit

Permalink
fix service arbitrary to make fields unique
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Nov 8, 2023
1 parent 0252691 commit 8b58d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion property_tests/arbitraries/candid/reference/service_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const ServiceMethodArb = fc
export const ServiceArb = fc
.tuple(
UniqueIdentifierArb('typeDeclaration'),
fc.array(ServiceMethodArb),
fc.uniqueArray(ServiceMethodArb, { selector: (entry) => entry.name }),
PrincipalArb
)
.map(([name, serviceMethods, principal]): CandidMeta<Principal> => {
Expand Down

0 comments on commit 8b58d21

Please sign in to comment.