Open aljones15 opened 4 years ago
Suggested new tests:
should sign and verify with a controller string passed to purpose
should sign and verify with a controller object passed to purpose
should sign and verify without a controller passed to purpose using a key with a controller string
should sign and verify without a controller passed to purpose using a key with a controller object
Ok, that's fine. Note that adding those will just mean renaming two of the existing ones and adding two more.
TODO:
Update: When the suites were split out into their own packages the local coverage testing here became very very low. Some sort of "identity" suite, or a similar concept, should be developed here for the purposes of testing and coverage. It may be able to be derived from one of the other suites. The code here does get indirectly tested in the other suites, but it's difficult to make changes here alone without any tests.
JsonLD Signatures is a pretty important part of the current tech stack.
Currently test coverage is hovering around 65~79% with all of those tests failing in an incoming branch from @mattcollier This issue is to layout what testing remains as
instanbul
shows surprisingly large amounts of the library need code coverage i.e. that 79% is because there are a lot of modules with 100% coverage such asPublicKeyProofPurpose
, but thenLinkedDataProof
stands at about 50% depending on the metric used.