mirror of
https://github.com/wweir/sower.git
synced 2026-10-21 04:46:11 +00:00
Review of the previous commit found the validation test green for a reason it did not claim: SowerdConfig with an empty FakeSite fails Validate on "fake site is required" before validateSiteRoutes runs, so the bogus authority was never exercised. Set a valid FakeSite and assert the error names the authority field, which the assertion can no longer satisfy by accident. Also fold the router mapping case into the end-to-end test and drop the standalone TestSiteRouterPreserveHost: the positive mapping is already implied by the wire assertion, and the default case costs one extra route and two checks there. Both directions were verified by mutation — inverting the mapping and letting Validate accept the bogus value each turn the covering test red.