UNPKG

linagora-rse

Version:
29 lines (20 loc) 702 B
'use strict'; var expect = require('chai').expect; describe('The Core module config property', function() { var core = null; beforeEach(function() { core = this.helpers.requireBackend('core'); }); it('should exist', function() { expect(core.config).to.exist; expect(core.config).to.be.a.function; }); it('should return a JSON object for default namespace', function() { var config = core.config('default'); expect(config).to.be.an.Object; }); it('should have test specific key "for-the-test"', function() { var config = core.config('default'); expect(config['for-the-test']).to.equal('This key is only set in the test configuration file'); }); });