In the last lesson, we saw what we do for models. Because we have more than one data model, we will have to write tests for each of the others.
Testing Translation fromUnsafe
We will not go into much detail of the JSON tests for Translation, but among those is a helper function called fromUnsafe. Let’s take a look at that function.