You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
invalidCreateProof function has a closure that can not be ammended later. This causes issues when chaining generators, for instance if you want an invalid proof lacking both a type and a verificationMethod it would be hard to do that.
so replace the invalidCreateProof with something like this:
The advantage here is a single MockDataIntegrityProof can contain multiple mocks and stubs in one go reducing the need for chaining generators. Generators might still be needed for documentLoaders containing invalid contexts that make the mock proof possible.
The text was updated successfully, but these errors were encountered:
Currently we simply mutate a new instance of DataIntegrityProof to produce invalid test data.
This works, but the
data-integrity-test-suite-assertion/vc-generator/helpers.js
Lines 5 to 98 in 6c3ceb5
invalidCreateProof
function has a closure that can not be ammended later. This causes issues when chaining generators, for instance if you want an invalid proof lacking both a type and a verificationMethod it would be hard to do that.so replace the
invalidCreateProof
with something like this:The advantage here is a single
MockDataIntegrityProof
can contain multiple mocks and stubs in one go reducing the need for chaining generators. Generators might still be needed for documentLoaders containing invalid contexts that make the mock proof possible.The text was updated successfully, but these errors were encountered: