Chatwoot/app/javascript/sdk/specs/cookieHelpers.spec.js
2022-02-21 09:40:11 +05:30

8 lines
255 B
JavaScript

import { getUserCookieName } from '../cookieHelpers';
describe('#getUserCookieName', () => {
it('returns correct cookie name', () => {
global.$chatwoot = { websiteToken: '123456' };
expect(getUserCookieName()).toBe('cw_user_123456');
});
});