* fix(HH-530): replace user-facing Chatwoot branding * fix(HH-530): close branding review blockers * test(HH-530): cover update banner binding --------- Co-authored-by: Rogee <rogee@ipao.vip>
18 lines
587 B
JavaScript
18 lines
587 B
JavaScript
import { getters } from '../globalConfig';
|
|
|
|
describe('globalConfig branding getters', () => {
|
|
it('treats GoChat as the default branded installation', () => {
|
|
const state = { installationName: 'GoChat' };
|
|
|
|
expect(getters.isACustomBrandedInstance(state)).toBe(false);
|
|
expect(getters.isAChatwootInstance(state)).toBe(true);
|
|
});
|
|
|
|
it('recognizes a custom installation name', () => {
|
|
const state = { installationName: 'Acme Support' };
|
|
|
|
expect(getters.isACustomBrandedInstance(state)).toBe(true);
|
|
expect(getters.isAChatwootInstance(state)).toBe(false);
|
|
});
|
|
});
|