All files / helpers validateAction.js

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13      1x     4x 3x 3x   1x    
import { isFSA } from 'flux-standard-action';
import debug from 'debug';
 
const log = debug('electron-redux:validateAction');
 
export default function validateAction(action) {
  if (!isFSA(action)) {
    log('WARNING! Action not FSA-compliant', action);
    return false;
  }
  return true;
}