Switch wont work
I have wired my entire basement and do understand the basics of electrical wiring.
I have two seperate switches each controlling a different set of lights, light set 1 controls cans and light set 2 controls a track light. Both switches are connected seperately to the supply in the juntion box above in the joists. Also in the junction box there is another line of romex running to an outlet on the wall. Then each switch is wired to its corresponding lights with the whites connected behind the switches, blacks wired to the switches and grounds wired to the switches. In the junction box I have the blacks all connected, whites all connected and grounds all connected.
The outlet on the wall works properly, light set 1 works properly, but light set 2 does not light up. It does however have power (I tested with a tester) at the switch and at the light, just no light.
Everything seems to be wired properly according to my understanding. Very strange.