mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
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');
|
|
});
|
|
});
|
|
});
|