As far as I know, MLB initially was using saliva tests which they processed at their own PED lab. Because of testing delays at their own lab, teams were grabbing any lab they could find to process their own tests.
I'm pretty sure the NBA and NHL use nasal swabs.