/**
 * Created by alex on 11/30/15.
 */

describe('ColorFinder class', function () {

    it('should get default config value', function () {
        expect(ColorFinder.getConfig('maxColorValue')).toBe(230);
    });

    it('should update config value', function () {
        expect(ColorFinder.setConfig('maxColorValue', 200).getConfig('maxColorValue')).toBe(200);
    });

});
/**
 * Created by alex on 11/30/15.
 */

describe('ColorFinder class', function () {

    it('should get default config value', function () {
        expect(ColorFinder.getConfig('maxColorValue')).toBe(230);
    });

    it('should update config value', function () {
        expect(ColorFinder.setConfig('maxColorValue', 200).getConfig('maxColorValue')).toBe(200);
    });

    it('should throw error if config key unknown', function () {
        expect(function () {
            ColorFinder.setConfig('customConfig', 'OK?');
        }).toThrow(new Error('ColorFinder: setConfig: Invalid config key'));
    });

});
Add one more test to init travis
Add one more test to init travis
