This repository contains demonstration code for my Medium article iOS Unit Tests and Asynchronous Calls.
A simple class
DispatchQueue.main.asyncAfter is refactored to allow better unit testing.
The refactoring is done twice, first with
ReactiveSwift, second with
ReactiveSwift part uses a global variable to access the
Combine part uses Constructor Injection.