mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
### Context In working on #5296 I noticed a lot of the test had repeated code that can be pulled into a `setup` function. Additionally some of the test were missing _Given_, _When_, and _Then_ statements so those were added. This change hopefully makes this code more readable to future maintainers. I also noticed some of the test had extra work in the _Given_ that wasn't necessary so I removed that. ### The problem Repeated steps in the _Given_ section of the test ### The fix Implement the `setup` and `teardown` functions as well as add missing _Given_, _When_, and _Then_ comments. ### Related bugs This isn't related to any bugs this is just something that I saw that could be improved.