Mayonnaise is used in a chocolate cake as a replacement for eggs. You cannot taste the mayonnaise but it adds an extra velvety texture to a traditional chocolate cake.