Unit Tests

Sun Jan 16 2022

Asserting errors from throwing functions

4 minute read

Looking at how to use expecations and XCTAssertThrowsError to assert specific errors are being thrown in Swift.

Fri Jul 02 2021

Testing dates consistently

6 minute read

A quick look at how very simple dependency injection 💉 can help testing date differences using cache invalidation as an example.