UNPKG

react-gantt-timeline

Version:

[![npm](https://img.shields.io/npm/v/react-gantt-timeline.svg?style=flat-square)](http://npm.im/react-gantt-timeline) [![MIT License](https://img.shields.io/npm/l/react-list.svg?style=flat-square)](http://opensource.org/licenses/MIT) [![Travis](https://tr

17 lines (15 loc) 714 B
import Config from 'libs/helpers/config/Config'; describe('Test Configuration Class', () => { it('It populates with defaults when no config is sent', () => { Config.load(); let actualConfig = Config.values; expect(actualConfig['header']['top']['style']['backgroundColor']).toBe('#333333'); }); it('It populates with defaults when no config is sent', () => { let newvalues = { header: { top: { style: { backgroundColor: 'yellow' } } } }; Config.load(newvalues); let actualConfig = Config.values; expect(actualConfig['header']['top']['style']['backgroundColor']).toBe('yellow'); expect(actualConfig['header']['middle']['style']['backgroundColor']).toBe('chocolate'); }); });