/* global $ */

var config = {
  AUTOSAVE_DELAY: 5000
};

if ('<%= Rails.env %>' === 'test') {
  $.extend(config, {
    AUTOSAVE_DELAY: 50
  });
}

/* global $ */

var config = {
  AUTOSAVE_DELAY: 2000
};

if ('<%= Rails.env %>' === 'test') {
  $.extend(config, {
    AUTOSAVE_DELAY: 50
  });
}

Reduce autosave duration to 2s
Reduce autosave duration to 2s
