35 weeks pregnant

So today out of now were I decided to smoke a bowl and I haven’t smoked at all this pregnancy, how long will it take to get out of my system and babies? I’m nervous that I will test positive in the hospital