mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
fix types in test
This commit is contained in:
parent
07172a3887
commit
2832f7bb74
@ -12,7 +12,7 @@ vi.mocked(navigate).mockResolvedValue()
|
||||
describe('VikeBtn', () => {
|
||||
const Wrapper = () => {
|
||||
return mount(VikeBtn, {
|
||||
global: { provide: { [vikePageContext]: { urlPathname: '/some-url' } } },
|
||||
global: { provide: { [vikePageContext as symbol]: { urlPathname: '/some-url' } } },
|
||||
attrs: { href: '/some-path' },
|
||||
})
|
||||
}
|
||||
@ -32,7 +32,7 @@ describe('VikeBtn', () => {
|
||||
|
||||
describe('with href attribute app', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.setProps({ href: '/app' })
|
||||
await wrapper.setProps({ href: '/app' } as Partial<object>)
|
||||
})
|
||||
|
||||
it('has flat variant', () => {
|
||||
@ -42,7 +42,7 @@ describe('VikeBtn', () => {
|
||||
|
||||
describe('with same href attribute', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.setProps({ href: '/some-url' })
|
||||
await wrapper.setProps({ href: '/some-url' } as Partial<object>)
|
||||
})
|
||||
|
||||
it('has tonal variant', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user