Here it seems as you know the expected object, so why don't you expect an output toBe your known object? You don't have to implement this right now, I was just pointing out that you can reduce the umber of expects here.