fix: Help Center articles are not available on the widget [CW-2534] (#7954)
This commit is contained in:
committed by
GitHub
parent
bdeb2f9812
commit
fabb3c8da4
@@ -31,4 +31,11 @@ describe('#actions', () => {
|
||||
expect(commit.mock.calls).toEqual([['SET_COLOR_SCHEME', 'dark']]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#setLocale', () => {
|
||||
it('creates actions for setting the locale properly', () => {
|
||||
actions.setLocale({ commit }, 'es_ES');
|
||||
expect(commit.mock.calls).toEqual([['SET_WIDGET_LOCALE', 'es_ES']]);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -32,4 +32,12 @@ describe('#mutations', () => {
|
||||
expect(state.darkMode).toEqual('dark');
|
||||
});
|
||||
});
|
||||
|
||||
describe('#SET_WIDGET_LOCALE', () => {
|
||||
it('sets widget locale properly', () => {
|
||||
const state = { locale: 'en' };
|
||||
mutations.SET_WIDGET_LOCALE(state, 'es_ES');
|
||||
expect(state.locale).toEqual('es_ES');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user