Is this mains switch on the Neutral or on the Live wire?
If the switch was on the neutral wire, then toggling it would not be noticeable when measuring the wires in the junction box. The hot wire would constantly be live. Considering you're getting power on one of the wires that can be switched on or off suggests your switch is on the live side, as it should be.