I don't fully understand this sentence. Can someone explain it please?

Your strength of character and commitment show up when friends make decisions to do things that you know are wrong for you.