mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-23 14:17:19 +00:00
chore: Move referrerHost to appConfig store (#3433)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { actions } from '../../appConfig';
|
||||
|
||||
const commit = jest.fn();
|
||||
describe('#actions', () => {
|
||||
describe('#setReferrerHost', () => {
|
||||
it('creates actions properly', () => {
|
||||
actions.setReferrerHost({ commit }, 'www.chatwoot.com');
|
||||
expect(commit.mock.calls).toEqual([
|
||||
['SET_REFERRER_HOST', 'www.chatwoot.com'],
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#setWidgetColor', () => {
|
||||
it('creates actions properly', () => {
|
||||
actions.setWidgetColor({ commit }, { widgetColor: '#eaeaea' });
|
||||
expect(commit.mock.calls).toEqual([
|
||||
['SET_WIDGET_COLOR', { widgetColor: '#eaeaea' }],
|
||||
]);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user