Miscarriage or pregnant?

Lexi

Here is a picture I took a test June 8th and it was negative.. I took 2 tests today and it said pregnant... my period in June was medium flow for 3 days and for the last 3 days I have had brown discharge with mucus..... called the doctor and they thought it was abnormal and to take a test next week to see if I’m still pregnant. Had anyone experienced this?