How do you know the light goes out when you close the fridge door?

* * hi, if you open the fridge door look at the top or round the frame on my fridge there is a plastic switch type lever type thing push that and the light goes off

hope this helps,