Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Apr 28, 2024
1 parent 334a4ed commit 652c2c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/pages/localize_routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ describe('localizeRoutes', function () {
expect(localizedRoutes).toMatchSnapshot()
expect(localizedRoutes.length).to.equal(4)
routes.forEach(route => {
// Добавляем проверку для дефолтной локали
expect(localizedRoutes).to.deep.include({
path: route.path,
name: route.name,
meta: { locale: true }
})

// Добавляем проверки для не-дефолтных локалей
expect(localizedRoutes).to.deep.include({
path: `/:locale(${localeCodes.join('|')})${route.path === '/' ? '' : route.path}`,
name: `${route.name}${nuxtOptions.routesNameSeparator}locale`,
Expand Down

0 comments on commit 652c2c5

Please sign in to comment.