import { getQueryOfNextPageContext } from './getQueryOfNextPageContext';

describe('getQueryOfNextPageContext', () => {
  it('/goods/abshghgshgdhg#/spu', () => {
    expect(
      getQueryOfNextPageContext({
        pathname: '/[moduleName]/[moduleId]',
        asPath: '/goods/abshghgshgdhg#/spu',
        query: { title: 'SPU' },
      }),
    ).toEqual({ moduleName: 'goods', moduleId: 'abshghgshgdhg', title: 'SPU' });
  });
});
