decentralized-identity / decentralized-identity/web5-go

Add unit test for jwt.Sign() variadic parameter options

Open
#90 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Originally thought of while reviewing https://github.com/TBD54566975/web5-go/pull/89

We should add a test to `jwt_test.go` something like...

```go
func TestSign_Options(t *testing.T) { ... }
```

Which will test the variadic parameter options. `Type()` will be easy to unit test but `Purpose()` not as straight forward because (I think?) we'll need to generate a DID with multiple keys and instruct the signing to occur on the non-default key (a lot of assumptions in that statement; just briefly looking at it, it's complicated enough to stub in a ticket to investigate)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.