Skip to content

Commit f070b7d

Browse files
committed
refactor(tests): reduce duplication with test helper functions
Extract common DID document patterns into helper functions: - makeTestDIDDoc: creates basic DID document - makeTestDIDDocWithKA: adds keyAgreement section - makeTestVM: creates verification methods - makeTestX25519JWK: creates test X25519 JWK - Add constants for test DID values This removes ~100 lines of repetitive test setup code.
1 parent 4084f3a commit f070b7d

File tree

1 file changed

+103
-210
lines changed

1 file changed

+103
-210
lines changed

0 commit comments

Comments
 (0)