@codetanzania/emis-incident
Version:
A representation of an entity which define and track an instance(or occurrence) of an emergency(or disaster) event.
23 lines (16 loc) • 547 B
JavaScript
;
/* dependencies */
const path = require('path');
const { expect } = require('chai');
const Action =
require(path.join(__dirname, '..', '..', 'lib', 'action.model'));
describe('Action Statics', () => {
it('should expose model name as constant', () => {
expect(Action.MODEL_NAME).to.exist;
expect(Action.MODEL_NAME).to.be.equal('Action');
});
it('should expose collection name as constant', () => {
expect(Action.COLLECTION_NAME).to.exist;
expect(Action.COLLECTION_NAME).to.be.equal('actions');
});
});