Code coverage report for api/datum/DatumStates.js

Statements: 100% (9 / 9)      Branches: 50% (1 / 2)      Functions: 100% (1 / 1)      Lines: 100% (9 / 9)      Ignored: none     

All files » api/datum/ » DatumStates.js
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 441 1                     1 57 57   57 57     1                                           1  
var DatumTags = require("./DatumTags").DatumTags;
var DatumState = require("./DatumState").DatumState;
 
/**
 * @class DatumStates of Datum validation states
 * @name  DatumStates
 * @description The DatumStates is a minimal customization of the DatumTags
 * to add an internal model of DatumState.
 *
 * @extends DatumTags
 * @constructs
 */
var DatumStates = function DatumStates(options) {
  Eif (!this._fieldDBtype) {
    this._fieldDBtype = "DatumStates";
  }
  this.debug("Constructing DatumStates length: ", options);
  DatumTags.apply(this, arguments);
};
 
DatumStates.prototype = Object.create(DatumTags.prototype, /** @lends DatumStates.prototype */ {
  constructor: {
    value: DatumStates
  },
 
  /**
   *  The primary key < v2 was "label" but we changed to use "id" so that
   *  "label" could be used only for a human friendly (and customizable)
   *  label while the id must remain unchanged for glossing and other automation.
   * @type {Object}
   */
  primaryKey: {
    value: "validationStatus"
  },
 
  INTERNAL_MODELS: {
    value: {
      item: DatumState
    }
  }
 
});
exports.DatumStates = DatumStates;