Skip to content

Commit d692497

Browse files
committed
better test description
1 parent bac68cd commit d692497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/router-generator/tests/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ describe('removeUnderscores', () => {
241241
})
242242

243243
describe('removeLeadingUnderscores', () => {
244-
it('removes leading underscore when nonnested path', () => {
244+
it('removes leading underscore when not routeToken', () => {
245245
expect(removeLeadingUnderscores('_test', 'route')).toBe('test')
246246

247247
expect(removeLeadingUnderscores('/_test/abc/route/_d', 'route')).toBe(
@@ -263,7 +263,7 @@ describe('removeLeadingUnderscores', () => {
263263
})
264264

265265
describe('removeTrailingUnderscores', () => {
266-
it('removes trailing underscore when nonnested path', () => {
266+
it('removes trailing underscore when not routeToken', () => {
267267
expect(removeTrailingUnderscores('test_', 'route')).toBe('test')
268268

269269
expect(removeTrailingUnderscores('/_test_/abc_/route/_d', 'route')).toBe(

0 commit comments

Comments
 (0)