provide both console.log and console.pp
This commit is contained in:
parent
1d4d5f397a
commit
2b5eaa7990
@ -37,11 +37,9 @@ module Jasmine
|
|||||||
<title>Jasmine Test Runner</title>
|
<title>Jasmine Test Runner</title>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.console = { log: function(data) {
|
window.console = { log: function(data) {
|
||||||
if (jasmine) {
|
|
||||||
JHW.log(jasmine.pp(data))
|
|
||||||
} else {
|
|
||||||
JHW.log(JSON.stringify(data));
|
JHW.log(JSON.stringify(data));
|
||||||
}
|
}, pp: function(data) {
|
||||||
|
JHW.log(jasmine ? jasmine.pp(data) : JSON.stringify(data));
|
||||||
} };
|
} };
|
||||||
</script>
|
</script>
|
||||||
#{files.join("\n")}
|
#{files.join("\n")}
|
||||||
|
Loading…
Reference in New Issue
Block a user