Skip to content

Commit

Permalink
Add index do dispatcher register.
Browse files Browse the repository at this point in the history
  • Loading branch information
nowakweronika committed Mar 27, 2024
1 parent 5b593ab commit 89c6e44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MockDispatcher : Dispatcher(), MockRegistry {
val errors: MutableList<Throwable> = mutableListOf()

override fun register(response: ResponseGenerator) {
mocks.add(Mock(response))
mocks.add(0, Mock(response))
}

override fun clear() {
Expand Down

0 comments on commit 89c6e44

Please sign in to comment.