If you suspected that the electrical wires in your computer's PSU (Power Supply Unit) were faulty, you could have used the "Paper clip" method for testing it ->
https://www.youtube.com/watch?v=ixcWCrYpw3Y. If it is a problem with your computer's PSU, you should replace it ASAP with another one (Another used one if not a new one) before a surge builds up inside of it and fries your computer's motherboard or any components attached to the motherboard (e.g. - Hard drive or RAM memory sticks. DVD writers and CD/DVD-ROM drives tend to be more resilient - A long time ago, I lost a 40GB HDD [I didn't make backups back then] and a 512MB stick of DDR memory when an old, cheap, generic brand 300Watt PSU that I once had developed a surge overnight while I was sleeping. When I woke up, I saw my HDD constantly spinning [The drive light was on constantly even though I didn't set my machine to do anything overnight] and garbled text on my monitor. When I tried to reboot, my computer failed to POST saying that there was no primary master hard drive installed and that the amount of RAM memory had changed. Luckily my mobo didn't suffer any damage. Nowadays, I only buy name brand,
80Plus Bronze certified PSUs [They're good enough for my purposes - No need to spend the extra $$$ for a 80Plus Platinum or even Titanium Certified PSU. I don't use my machine for
BitCoin mining])! If it was the electrical wires behind your wall outlet then that would be a different matter! Did you try plugging in your computer into another outlet in a different wall?
BTW - I found these funny related pics (None of the pics are directed at you)!