mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
rename ContributionLink to ContributionLinks
This commit is contained in:
parent
d4e722ea93
commit
4f69403b77
@ -60,9 +60,9 @@ describe('NavBar', () => {
|
|||||||
'/creation-confirm',
|
'/creation-confirm',
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
it('has a link to /contribution-link', () => {
|
it('has a link to /contribution-links', () => {
|
||||||
expect(wrapper.findAll('.nav-item').at(4).find('a').attributes('href')).toBe(
|
expect(wrapper.findAll('.nav-item').at(4).find('a').attributes('href')).toBe(
|
||||||
'/contribution-link',
|
'/contribution-links',
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -19,7 +19,9 @@
|
|||||||
>
|
>
|
||||||
{{ $store.state.openCreations }} {{ $t('navbar.open_creation') }}
|
{{ $store.state.openCreations }} {{ $t('navbar.open_creation') }}
|
||||||
</b-nav-item>
|
</b-nav-item>
|
||||||
<b-nav-item to="/contribution-link">{{ $t('navbar.automaticContributions') }}</b-nav-item>
|
<b-nav-item to="/contribution-links">
|
||||||
|
{{ $t('navbar.automaticContributions') }}
|
||||||
|
</b-nav-item>
|
||||||
<b-nav-item @click="wallet">{{ $t('navbar.my-account') }}</b-nav-item>
|
<b-nav-item @click="wallet">{{ $t('navbar.my-account') }}</b-nav-item>
|
||||||
<b-nav-item @click="logout">{{ $t('navbar.logout') }}</b-nav-item>
|
<b-nav-item @click="logout">{{ $t('navbar.logout') }}</b-nav-item>
|
||||||
</b-navbar-nav>
|
</b-navbar-nav>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import ContributionLink from './ContributionLink.vue'
|
import ContributionLinks from './ContributionLinks.vue'
|
||||||
import { listContributionLinks } from '@/graphql/listContributionLinks.js'
|
import { listContributionLinks } from '@/graphql/listContributionLinks.js'
|
||||||
|
|
||||||
const localVue = global.localVue
|
const localVue = global.localVue
|
||||||
@ -34,12 +34,12 @@ const mocks = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('ContributionLink', () => {
|
describe('ContributionLinks', () => {
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
let wrapper
|
let wrapper
|
||||||
|
|
||||||
const Wrapper = () => {
|
const Wrapper = () => {
|
||||||
return mount(ContributionLink, { localVue, mocks })
|
return mount(ContributionLinks, { localVue, mocks })
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('mount', () => {
|
describe('mount', () => {
|
||||||
@ -81,9 +81,9 @@ describe('router', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('contribution-link', () => {
|
describe('contribution-links', () => {
|
||||||
it('loads the "ContributionLink" component', async () => {
|
it('loads the "ContributionLinks" component', async () => {
|
||||||
const component = await routes.find((r) => r.path === '/contribution-link').component()
|
const component = await routes.find((r) => r.path === '/contribution-links').component()
|
||||||
expect(component.default.name).toBe('ContributionLinks')
|
expect(component.default.name).toBe('ContributionLinks')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -24,8 +24,8 @@ const routes = [
|
|||||||
component: () => import('@/pages/CreationConfirm.vue'),
|
component: () => import('@/pages/CreationConfirm.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/contribution-link',
|
path: '/contribution-links',
|
||||||
component: () => import('@/pages/ContributionLink.vue'),
|
component: () => import('@/pages/ContributionLinks.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '*',
|
path: '*',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user