Commit 9bcdaebc authored by Sean Hammond's avatar Sean Hammond Committed by GitHub

Merge pull request #17 from hypothesis/remove-test-log-ban

Remove the ban on using console.log() in tests
parents 49ba9a70 6c2d3a48
......@@ -22,13 +22,3 @@ require('./polyfills');
// PhantomJS 2.x includes a `URL` constructor so `new URL` works
// but it appears to be broken.
require('js-polyfills/url');
// disallow console output during tests
['debug', 'log', 'warn', 'error'].forEach(function (method) {
var realFn = window.console[method];
window.console[method] = function () {
var args = [].slice.apply(arguments);
realFn.apply(console, args);
throw new Error('Tests must not log console warnings');
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment