mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-02 11:03:44 +00:00
chore: Move referrerHost to appConfig store (#3433)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user