test(docs): don't mock out window unnecessarily