Tests run in browser and node.js