Fix Travis tests

This commit is contained in:
Scott Erickson 2016-02-19 13:50:00 -08:00
parent 10402fa945
commit 16969e1d5a
2 changed files with 6 additions and 2 deletions
app/assets

View file

@ -2,8 +2,9 @@
// Hooks into the test view logic for running tests. // Hooks into the test view logic for running tests.
window.userObject = {_id:'1'} window.userObject = {_id:'1'};
window.StripeCheckout = {configure: function (){}} window.serverConfig = {picoCTF: false, production: false};
window.StripeCheckout = {configure: function (){}};
initialize = require('core/initialize'); initialize = require('core/initialize');
initialize.init(); initialize.init();
console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be. console.debug = function() {}; // Karma conf doesn't seem to work? Debug messages are still emitted when they shouldn't be.

View file

@ -75,6 +75,9 @@
<![endif]> <![endif]>
<script> <script>
// IMPORTANT: If you edit here, make sure app/assets/javascripts/run-tests.js puts in placeholders for
// running client tests on Travis.
// Placeholder for iPad, which inspects the user object at the bottom of an injected page. // Placeholder for iPad, which inspects the user object at the bottom of an injected page.
window.serverConfig = "serverConfigTag"; window.serverConfig = "serverConfigTag";
window.userObject = "userObjectTag"; window.userObject = "userObjectTag";