File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
aws-auth-cognito/src/test/java/com/amplifyframework/auth/cognito/usecases Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import com.amplifyframework.statemachine.codegen.states.AuthorizationState
2828import com.amplifyframework.statemachine.codegen.states.SignUpState
2929import io.kotest.assertions.throwables.shouldThrow
3030import io.kotest.matchers.shouldBe
31+ import io.kotest.matchers.types.shouldBeInstanceOf
3132import io.mockk.every
3233import io.mockk.justRun
3334import io.mockk.mockk
@@ -95,7 +96,10 @@ class AutoSignInUseCaseTest {
9596
9697 verify {
9798 stateMachine.send(
98- withArg { it is AuthenticationEvent && it.eventType is AuthenticationEvent .EventType .CancelSignIn }
99+ withArg {
100+ it.shouldBeInstanceOf<AuthenticationEvent >()
101+ it.eventType.shouldBeInstanceOf<AuthenticationEvent .EventType .CancelSignIn >()
102+ }
99103 )
100104 }
101105 }
@@ -112,7 +116,10 @@ class AutoSignInUseCaseTest {
112116
113117 verify {
114118 stateMachine.send(
115- withArg { it is AuthenticationEvent && it.eventType is AuthenticationEvent .EventType .SignInRequested }
119+ withArg {
120+ it.shouldBeInstanceOf<AuthenticationEvent >()
121+ it.eventType.shouldBeInstanceOf<AuthenticationEvent .EventType .SignInRequested >()
122+ }
116123 )
117124 }
118125 }
You can’t perform that action at this time.
0 commit comments