it(`correctly keeps index /`, () => { onCreatePage({ actions, page: { page: `/` } }) expect(actions.createPage).not.toBeCalled() expect(actions.deletePage).not.toBeCalled() })
it(`correctly removes slash and recreated page`, () => { onCreatePage({ actions, page: { path: `/home/` } }) expect(actions.deletePage).toBeCalledWith({ path: `/home/` }) expect(actions.createPage).toBeCalledWith({ path: `/home` }) })