The console.warn statements that occur (and are expected to occur) during testing should be wrapped in another function, and this function should be used to check whether a specific statement occurred or not. The default should be that no console.warn statements should be printed.