Skip to content

Commit

Permalink
test: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrosenberg committed Dec 5, 2023
1 parent 3afd8cb commit 87778dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/runtime/helpers/spec/helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ test('can resolve named', () => {
expect(res.name).toBe('admin')
})

test('can resolve sibling\'s child', () => {
const res = traverseNode(adminNode, 'posts/[slug]', mockRouter)
test("can resolve sibling's child", () => {
const res1 = traverseNode(adminNode, '../posts/[slug]', mockRouter)
expect(res.name).toBe('[slug]')
expect(res1.name).toBe('[slug]')
})

Expand Down

0 comments on commit 87778dd

Please sign in to comment.