fix: Help Center articles are not available on the widget [CW-2534] (#7954)

This commit is contained in:
Nithin David Thomas
2023-09-21 17:06:15 +05:30
committed by GitHub
parent bdeb2f9812
commit fabb3c8da4
6 changed files with 48 additions and 2 deletions

View File

@@ -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');
});
});
});