Skip to content

Commit 09a6ac2

Browse files
howwohmmclaude
andcommitted
fix: add type casts to test mocks for vue-tsc compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1a301a2 commit 09a6ac2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/nuxt/composables/use-repository-url.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('useRepositoryUrl', () => {
1717
type: 'git',
1818
url: 'git+https://github.com/agentmarkup/agentmarkup.git',
1919
},
20-
}),
20+
} as any),
2121
)
2222

2323
expect(repositoryUrl.value).toBe('https://github.com/agentmarkup/agentmarkup')
@@ -31,7 +31,7 @@ describe('useRepositoryUrl', () => {
3131
url: 'git+https://github.com/agentmarkup/agentmarkup.git',
3232
directory: 'packages/vite',
3333
},
34-
}),
34+
} as any),
3535
)
3636

3737
expect(repositoryUrl.value).toBe(
@@ -43,14 +43,14 @@ describe('useRepositoryUrl', () => {
4343
const { repositoryUrl } = useRepositoryUrl(
4444
ref({
4545
repository: {},
46-
}),
46+
} as any),
4747
)
4848

4949
expect(repositoryUrl.value).toBeNull()
5050
})
5151

5252
it('should return null when no repository field', () => {
53-
const { repositoryUrl } = useRepositoryUrl(ref({}))
53+
const { repositoryUrl } = useRepositoryUrl(ref({} as any))
5454

5555
expect(repositoryUrl.value).toBeNull()
5656
})
@@ -61,7 +61,7 @@ describe('useRepositoryUrl', () => {
6161
repository: {
6262
url: 'https://github.com/nuxt/ui',
6363
},
64-
}),
64+
} as any),
6565
)
6666

6767
expect(repositoryUrl.value).toBe('https://github.com/nuxt/ui')
@@ -74,7 +74,7 @@ describe('useRepositoryUrl', () => {
7474
url: 'git+https://github.com/org/repo.git',
7575
directory: 'packages/core/',
7676
},
77-
}),
77+
} as any),
7878
)
7979

8080
expect(repositoryUrl.value).toBe('https://github.com/org/repo/tree/HEAD/packages/core/')

0 commit comments

Comments
 (0)