silence version logging in tests

This commit is contained in:
Yotam Mann 2017-11-29 15:23:20 -05:00
parent f5e6d973c9
commit 30f118fd55
2 changed files with 5 additions and 4 deletions

View file

@ -16,9 +16,6 @@ define(["Tone/core/Tone", "deps/chai", "Tone/core/Context", "Tone/core/Transport
timeout : 30000
});
//don't log for tests
window.TONE_SILENCE_VERSION_LOGGING = true
beforeEach(function(){
if (Transport.bpm.value !== 120){
Transport.bpm.value = 120;

View file

@ -6,6 +6,10 @@
<script src="./deps/mocha.js"></script>
<script src="./deps/chai.js"></script>
<!-- TESTS -->
<script type="text/javascript">
//don't log for tests
window.TONE_SILENCE_VERSION_LOGGING = true
</script>
<script data-main="Main.js" src="./deps/require.js"></script>
<!-- STYLE -->
<link rel="stylesheet" href="./deps/mocha.css" />
@ -13,4 +17,4 @@
<body>
<div id="mocha"></div>
</body>
</html>
</html>