Skip to content

Commit

Permalink
fix(connections): didexchange to connection state (#823)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jun 1, 2022
1 parent 6e088cd commit dda1bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function rfc0160StateFromDidExchangeState(didExchangeState: DidExchangeSt
[DidExchangeState.RequestSent]: ConnectionState.Requested,
[DidExchangeState.ResponseReceived]: ConnectionState.Responded,
[DidExchangeState.ResponseSent]: ConnectionState.Responded,
[DidExchangeState.Completed]: DidExchangeState.Completed,
[DidExchangeState.Completed]: ConnectionState.Complete,
}

return stateMapping[didExchangeState]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('ConnectionState', () => {
expect(rfc0160StateFromDidExchangeState(DidExchangeState.ResponseReceived)).toEqual(ConnectionState.Responded)
expect(rfc0160StateFromDidExchangeState(DidExchangeState.ResponseReceived)).toEqual(ConnectionState.Responded)

expect(rfc0160StateFromDidExchangeState(DidExchangeState.Completed)).toEqual(DidExchangeState.Completed)
expect(rfc0160StateFromDidExchangeState(DidExchangeState.Completed)).toEqual(ConnectionState.Complete)
})
})
})

0 comments on commit dda1bd3

Please sign in to comment.