feat(debug): debug buttons for NODE_ENV==test too

This commit is contained in:
Tyler Renelle 2014-06-16 13:25:34 -06:00
parent 7ec679d11a
commit 3136b4cc2c
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@
/**
* Debug functions. Note that the server route for gems is only available if process.env.DEBUG=true
*/
if (window.env.NODE_ENV === 'development') {
if (_.contains(['development','test'],window.env.NODE_ENV)) {
$scope.addMissedDay = function(){
if (!confirm("Are you sure you want to reset the day?")) return;
var dayBefore = moment(User.user.lastCron).subtract('days', 1).toDate();

View file

@ -65,7 +65,7 @@ footer.footer(ng-controller='FooterCtrl')
tr
td
a.addthis_button_google_plusone(g:plusone:size='medium')
else if(env.NODE_ENV === 'development' && !env.isStaticPage)
else if (env.NODE_ENV==='development' || env.NODE_ENV==='test') && !env.isStaticPage
h4 Debug
.btn-group-vertical
a.btn.btn-default(ng-click='addMissedDay()') +1 Missed Day