Skip to content

Commit cda25eb

Browse files
committed
fix: a11y method fix to emulate package code url
1 parent b9fcc06 commit cda25eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,14 +1164,14 @@ describe('component accessibility audits', () => {
11641164
it('should have no accessibility violations', async () => {
11651165
const component = await mountSuspended(CodeHeader, {
11661166
props: {
1167-
filePath: 'dir1/dir2/sourcefile.js',
1167+
filePath: 'misc/true.js',
11681168
loading: false,
11691169
isViewingFile: true,
11701170
isBinaryFile: false,
11711171
fileContent: {
11721172
package: 'vite',
11731173
version: '1.0.0',
1174-
path: 'dir1/dir2/sourcefile.js',
1174+
path: 'misc/true.js',
11751175
language: 'javascript',
11761176
contentType: 'application/javascript',
11771177
content: 'const x = 1;',
@@ -1180,7 +1180,7 @@ describe('component accessibility audits', () => {
11801180
},
11811181
markdownViewMode: 'preview',
11821182
selectedLines: null,
1183-
getCodeUrlWithPath: (path = '') => path,
1183+
getCodeUrlWithPath: (path = '') => `/package-code/vite/v/1.0.0/${path}`,
11841184
packageName: 'vite',
11851185
version: '1.0.0',
11861186
},

0 commit comments

Comments
 (0)