Code coverage report for src/flux/plan-publish.coffee

Statements: 100% (17 / 17)      Branches: 100% (4 / 4)      Functions: 100% (2 / 2)      Lines: 100% (17 / 17)      Ignored: none     

All files » src/flux/ » plan-publish.coffee
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43           50× 50× 50× 50×                                          
var CrudConfig, JobListenerConfig, PlanPublishConfig, _, actions, extendConfig, getIds, makeSimpleStore, moment, ref, ref1, store;
 
ref = require('./helpers'), CrudConfig = ref.CrudConfig, makeSimpleStore = ref.makeSimpleStore, extendConfig = ref.extendConfig;
 
JobListenerConfig = require('../helpers/job').JobListenerConfig;
 
_ = require('underscore');
 
moment = require('moment');
 
getIds = function(obj) {
  var id, jobId, publish_job;
  publish_job = obj.publish_job, id = obj.id;
  jobId = (publish_job != null ? publish_job.id : void 0) || null;
  return {
    id: id,
    jobId: jobId
  };
};
 
PlanPublishConfig = {
  _getIds: function(obj) {
    return this.exports._getIds(obj);
  },
  exports: {
    _getIds: getIds
  }
};
 
extendConfig(PlanPublishConfig, new JobListenerConfig(2000, 100));
 
PlanPublishConfig.exports.isPublishing = PlanPublishConfig.exports.isProgressing;
 
PlanPublishConfig.exports.isPublished = PlanPublishConfig.exports.isSucceeded;
 
ref1 = makeSimpleStore(PlanPublishConfig), actions = ref1.actions, store = ref1.store;
 
module.exports = {
  PlanPublishActions: actions,
  PlanPublishStore: store
};