Maze interview question

How would I write a test for the component from the live coding excercise