@@ -48,8 +48,14 @@ Then, a BasicResponse class is created to represent what a good response should
The test is given the description "Check flow of states" to indicate what it is testing for. Inside the build method, when the createPlayer method is called with any argument passed to createPlayer, the mock method should return the good response, which is a BasicResponse with success = true and description = "created".
In the act method, a SendCreatePlayerEvent with "fred", "pw", 1, 2, 3 being passed to it as parameters. The event is then added to the bloc, which triggers the bloc's event listener. The test is instructed to wait for 500 milliseconds to allow the bloc to complete state transitions.
### Act
In the act method, a SendCreatePlayerEvent with "fred", "pw", 1, 2, 3 being passed to it as parameters. The event is then added to the bloc, which triggers the bloc's event listener.
### Wait
The test is instructed to wait for 500 milliseconds to allow the bloc to complete state transitions since the event listener is an asynchronous function
### Expect
Lastly, the test asserts whether the bloc has successfully emitted the CreatePlayerLoading and CreatePlayerComplete states.