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