Thought AF had started

Had small bit of spotting yesterday and the rest brown discharge but only a little,
Confused is this AF or should I test for pregnancy????