Brown spotting with a positive test

Did anyone have brown spotting and then get a positive test? I’m worried it may be a miscarriage. My period was 2 days late and I was spotting dark brown. Tested positive today, but don’t want to get my hopes up.