canopas / UIPilot

The missing typesafe SwiftUI navigation library
https://canopas.github.io/UIPilot
MIT License
309 stars 27 forks source link

Added a unit test. #18

Closed jackrwright closed 2 years ago

jackrwright commented 2 years ago

I added a unit test that gets about 70% code coverage. It at least verifies that views get mapped and pushes and pops correctly update the internal paths array.

Of course, the actual Views aren't tested, which would be trickier. There are some libraries out there that do that for SwiftUI views, such as ViewInspector.

jimmy0251 commented 2 years ago

Hi Jack, sorry for the late response, I was out last week! I have added a couple of comments, let me know what you think!