Skip to content

Commit

Permalink
Add TestGetSignerUIDShouldFailForUninitializedDevice ref fibercrypto#139
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevAlDen committed Oct 14, 2019
1 parent cff2f3a commit 14d3bc0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/hardware/sky-wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,15 @@ func TestGetSignerUIDShouldBeOk(t *testing.T) {

// Then
require.Equal(t, core.UID(expectedDevId), devId)
}

func TestGetSignerUIDShouldFailForUninitializedDevice(t *testing.T) {
// Giving
sw := SkyWallet{}

// When
devId := sw.GetSignerUID()

// Then
require.Equal(t, core.UID("undefined"), devId)
}

0 comments on commit 14d3bc0

Please sign in to comment.