Question d’entretien chez Toptal

How would I unit test this component?