Tests for both node and the browser