mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
split test in two
This commit is contained in:
parent
db15a5da4e
commit
675917a8c0
@ -60,11 +60,16 @@ describe('ContentFooter', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('git commit hash and link', async () => {
|
||||
it('has last commit hash', async () => {
|
||||
wrapper.setData({ shortHash: 'ACCEDED' })
|
||||
wrapper.setData({ hash: 'ACCEDEDC001D00DC001D00DC001D00DC001CAFA' })
|
||||
await wrapper.vm.$nextTick()
|
||||
expect(wrapper.find('div.copyright').findAll('a').at(2).text()).toEqual('(ACCEDED)')
|
||||
})
|
||||
|
||||
it('links to last release commit', async () => {
|
||||
wrapper.setData({ hash: 'ACCEDEDC001D00DC001D00DC001D00DC001CAFA' })
|
||||
await wrapper.vm.$nextTick()
|
||||
expect(wrapper.find('div.copyright').findAll('a').at(2).attributes('href')).toEqual(
|
||||
'https://github.com/gradido/gradido/commit/ACCEDEDC001D00DC001D00DC001D00DC001CAFA',
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user