How early can I take a test??

How early can I take a pregnancy test? We messed around Thursday night.