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 timeout : 30000
}); });
//don't log for tests
window.TONE_SILENCE_VERSION_LOGGING = true
beforeEach(function(){ beforeEach(function(){
if (Transport.bpm.value !== 120){ if (Transport.bpm.value !== 120){
Transport.bpm.value = 120; Transport.bpm.value = 120;

View file

@ -6,6 +6,10 @@
<script src="./deps/mocha.js"></script> <script src="./deps/mocha.js"></script>
<script src="./deps/chai.js"></script> <script src="./deps/chai.js"></script>
<!-- TESTS --> <!-- 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> <script data-main="Main.js" src="./deps/require.js"></script>
<!-- STYLE --> <!-- STYLE -->
<link rel="stylesheet" href="./deps/mocha.css" /> <link rel="stylesheet" href="./deps/mocha.css" />