Skip to content

Commit

Permalink
fix: PR feedback update test
Browse files Browse the repository at this point in the history
  • Loading branch information
blittle committed Jan 28, 2022
1 parent 90d6641 commit a7b103d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,20 @@ it('handles index pages', () => {

it('handles nested index pages', () => {
const pages: ImportGlobEagerOutput = {
'./pages/products/index.server.jsx': STUB_MODULE,
'./pages/products/[handle].server.jsx': STUB_MODULE,
'./pages/blogs/index.server.jsx': STUB_MODULE,
'./pages/products/snowboards/fastones/index.server.jsx': STUB_MODULE,
};

const routes = createRoutesFromPages(pages);

expect(routes).toEqual([
{
path: '/products',
component: STUB_MODULE.default,
exact: true,
},
{
path: '/blogs',
component: STUB_MODULE.default,
Expand All @@ -61,6 +68,11 @@ it('handles nested index pages', () => {
component: STUB_MODULE.default,
exact: true,
},
{
path: '/products/:handle',
component: STUB_MODULE.default,
exact: true,
},
]);
});

Expand Down

0 comments on commit a7b103d

Please sign in to comment.