17 lines
506 B
JavaScript
17 lines
506 B
JavaScript
|
import { getters } from '../../appConfig';
|
||
|
|
||
|
describe('#getters', () => {
|
||
|
describe('#getWidgetColor', () => {
|
||
|
it('returns correct value', () => {
|
||
|
const state = { widgetColor: '#00bcd4' };
|
||
|
expect(getters.getWidgetColor(state)).toEqual('#00bcd4');
|
||
|
});
|
||
|
});
|
||
|
describe('#getReferrerHost', () => {
|
||
|
it('returns correct value', () => {
|
||
|
const state = { referrerHost: 'www.chatwoot.com' };
|
||
|
expect(getters.getReferrerHost(state)).toEqual('www.chatwoot.com');
|
||
|
});
|
||
|
});
|
||
|
});
|