Ovulation test

When taking ovulation test does ovulation happen while both lines are Dark or does it happen when the surge goes back down.?