"Joking" by pretending to be mad about something someone has a lot of anxiety about is an unkind thing to do. It's not funny, it's bullying.