mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-03 11:33:55 +00:00
chore: Move referrerHost to appConfig store (#3433)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { mutations } from '../../appConfig';
|
||||
|
||||
describe('#mutations', () => {
|
||||
describe('#SET_REFERRER_HOST', () => {
|
||||
it('sets referrer host properly', () => {
|
||||
const state = { referrerHost: '' };
|
||||
mutations.SET_REFERRER_HOST(state, 'www.chatwoot.com');
|
||||
expect(state.referrerHost).toEqual('www.chatwoot.com');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#SET_WIDGET_COLOR', () => {
|
||||
it('sets widget color properly', () => {
|
||||
const state = { widgetColor: '' };
|
||||
mutations.SET_WIDGET_COLOR(state, { widgetColor: '#00bcd4' });
|
||||
expect(state.widgetColor).toEqual('#00bcd4');
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user