Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aripalo committed May 12, 2022
1 parent 7e2bf64 commit 285b782
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/yubikey/setup/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ func TestStateMachine(t *testing.T) {
expected: State{Name: CHECK_DEVICE_PASSWORD_PROTECTED},
},
{
name: "device not password protected",
input: State{Name: CHECK_DEVICE_PASSWORD_PROTECTED},
op: Operation{IsPasswordProtected: func() bool { return false }},
name: "device not password protected",
input: State{Name: CHECK_DEVICE_PASSWORD_PROTECTED},
op: Operation{
IsPasswordProtected: func() bool { return false },
SetPassword: func(string) error { return nil },
},
expected: State{Name: CHECK_DEVICE_HAS_ACCOUNT},
},
{
Expand Down

0 comments on commit 285b782

Please sign in to comment.