Test the outlet and the end of the extension cord with one of these.
https://www.homedepot.com/p/Klein-Tools-GFCI-Receptacle-Tester-RT210/206517824
Or, using a voltage tester, test to see if you only have 110 volts between the small blade of the outlet/cord and the ground.