Unit Tests

Sun Jan 16 2022

Asserting errors from throwing functions

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

Read Time: 📖 4 minutes

Fri Jul 02 2021

Testing dates consistently

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

Read Time: 📖 6 minutes