message: chore(unit-test): add unit tests to ipcInfo util
diff: import { ipcinfoCookie } from '../';
  describe('ipcinfo cookie utility', () => {
  - beforeEach(() => {
  - const document = {
  - cookie: 'ipcInfo=cc%253DUS%253Blc%253Den',
  - };
  - global.document = document;
  + it('should set the ipcInfo cookie', () => {
  + const mockSet = jest.fn();
  + ipcinfoCookie.set = mockSet;
  + ipcinfoCookie.set('US', 'en');
  + expect(mockSet).toBeCalled();
  });
  - // it('should return undefined if cookie is not there', () => {
  - // const ipcinfo = ipcinfoCookie.get();
  - // expect(ipcinfo).toBe(undefined);
  - // });
  -
  it('should fetch the ipcInfo cookie and return a neat object', () => {
  + Object.defineProperty(window.document, 'cookie', {
  + writable: true,
  + value: 'ipcInfo=cc%253DUS%253Blc%253Den',
  + });
  +
  const info = {
  cc: 'US',
  lc: 'en',
  };
  const ipcinfo = ipcinfoCookie.get();
  - expect(ipcinfo).toBe(info);
  + expect(ipcinfo).toStrictEqual(info);
  });
  -
  - // it('should set the ipcInfo cookie', () => {
  - // const output = ipcinfoCookie.set('US', 'en');
  - // });
  });
  