Skip to content

Commit

Permalink
tweak output
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Oct 16, 2023
1 parent 342b3b3 commit 72bd97f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/web5-spec-test/report-template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ web5 spec conformance report for {{ .TestServerID.Name }} ({{ .TestServerID.Url
{{ range $groupName, $results := .Results }}
{{ $groupName }}
======================{{ range $test, $result := $results }}
{{ $test }}: {{ if $result }}fail: {{ $result }}{{ else }}pass{{ end }}{{ end }}
{{ $test }}: {{ if $result }}fail: {{ $result }}{{ else }}✔️ pass{{ end }}{{ end }}
{{ end }}
4 changes: 3 additions & 1 deletion tests/did-ion.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func init() {
tests["DID ION"] = map[string]testfn{
tests["did:ion"] = map[string]testfn{
"CreateRequest": didIonCreateRequest,
// "UpdateRequest": didIonUpdateRequest,
// "RecoverRequest": didIonRecoverRequest,
Expand Down Expand Up @@ -53,6 +53,8 @@ func didIonCreateRequest(ctx context.Context, serverURL string) error {
errs = append(errs, fmt.Errorf("3rd part of returned did of unexpected length: expected 46 characters, got %d", len(didParts[2])))
}

// TODO: base64decode didPart[3] and validate it's JSON structure

if len(errs) > 0 {
return errors.Join(errs...)
}
Expand Down

0 comments on commit 72bd97f

Please sign in to comment.