Skip to content

Commit 2eaedec

Browse files
committed
test: todo
1 parent 8cfbf08 commit 2eaedec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/codegen/generateRouteResolver.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ describe('generateRouteRecordPath', () => {
4545

4646
// TODO: we need to figure out an option for this
4747
it.todo('keeps trailing slashes', () => {
48-
// currently, the `a/` gets converted to `a` in the tree (which is expected)
49-
const node = new PrefixTree(DEFAULT_OPTIONS).insert('a/', 'a.vue')
48+
const node = new PrefixTree({
49+
...DEFAULT_OPTIONS,
50+
// trailingSlash: 'always',
51+
}).insert('a', 'a.vue')
5052
expect(
5153
generateRouteRecordPath({ importsMap, node, paramParsersMap: new Map() })
5254
).toBe(`path: new MatcherPatternPathStatic('/a/'),`)

0 commit comments

Comments
 (0)