Skip to content

Commit 1210053

Browse files
committed
test: add trailing slash in tests
1 parent 71fe94d commit 1210053

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/nuxt/components/VersionSelector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ describe('VersionSelector', () => {
322322

323323
const versionLink = component.findAll('a').find(a => a.text().includes('1.0.0'))
324324
expect(versionLink?.attributes('href')).toBe(
325-
'/package-code/test-package/v/1.0.0/src/index.ts',
325+
'/package-code/test-package/v/1.0.0/src/index.ts/',
326326
)
327327
})
328328
})

test/nuxt/components/compare/PackageSelector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('PackageSelector', () => {
4040
},
4141
})
4242

43-
const link = component.find('a[href="/package/lodash"]')
43+
const link = component.find('a[href="/package/lodash/"]')
4444
expect(link.exists()).toBe(true)
4545
})
4646

0 commit comments

Comments
 (0)