'use strict';

const expect = require('chai').expect;
const { config } = require('./config');

describe('CONFIG', () => {

    describe('isEnvironment', () => {

        it('Should have a property boolean', done => {

            expect(config.isEnvironment('test')).to.be.a('boolean');
            done();
        });

        it('Should return a boolean (true) all pass a variable called test in function isEnvironment', done => {

            expect(config.isEnvironment('test')).to.be.false;
            done();
        });

        it('Should return a boolean (false) all pass a variable any variable different of test in function isEnvironment', done => {

            expect(config.isEnvironment('development')).to.be.true;
            done();
        });
    });
});