Skip to content

Commit 273460c

Browse files
committed
format
1 parent da72f51 commit 273460c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/nextjs/test/config/manifest/suites/base-path/base-path.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,25 @@ describe('basePath', () => {
66
test('should generate routes with base path prefix', () => {
77
const manifest = createRouteManifest({
88
basePath: '/my-app',
9-
appDirPath: path.join(__dirname, 'app')
9+
appDirPath: path.join(__dirname, 'app'),
1010
});
1111

1212
expect(manifest).toEqual({
13-
staticRoutes: [
14-
{ path: '/my-app' },
15-
{ path: '/my-app/about' },
16-
{ path: '/my-app/api/test' }
17-
],
13+
staticRoutes: [{ path: '/my-app' }, { path: '/my-app/about' }, { path: '/my-app/api/test' }],
1814
dynamicRoutes: [
1915
{
2016
path: '/my-app/users/:id',
2117
regex: '^/my-app/users/([^/]+)$',
2218
paramNames: ['id'],
23-
}
19+
},
2420
],
2521
});
2622
});
2723

2824
test('should validate dynamic route regex with base path', () => {
2925
const manifest = createRouteManifest({
3026
basePath: '/my-app',
31-
appDirPath: path.join(__dirname, 'app')
27+
appDirPath: path.join(__dirname, 'app'),
3228
});
3329

3430
const dynamicRoute = manifest.dynamicRoutes.find(route => route.path === '/my-app/users/:id');

0 commit comments

Comments
 (0)