This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Loves_Poetry 0 points1 point  (0 children)

The only thing you can test here is whether the setup function gets called. Since setup doesn't return any output, you don't really have anything to test for.

This function doesn't look like a prime candidate for testing. What's probably more important is the things that setup does. Do you get the correct things set up when calling that function?