From ffb0cfbd4e48bee1395488a0099779c3256e0f9d Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 30 Sep 2014 22:42:00 +0300 Subject: tests: get meaningful console.log in loaded scripts --- tests/test_history.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_history.js b/tests/test_history.js index 1457f3d1..0851d9aa 100644 --- a/tests/test_history.js +++ b/tests/test_history.js @@ -33,6 +33,9 @@ var env = jsdom.env({ scripts: script_filenames, //url: "http://localhost:12345/", html: "", + created: function(errors, window) { + window.console.log = console.log; + }, done: function (errors, window) { console.log('---------'); console.log(errors); -- cgit v1.3.1