mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add tests for commit hash
This commit is contained in:
parent
827cdd636f
commit
db15a5da4e
@ -59,6 +59,16 @@ describe('ContentFooter', () => {
|
||||
'https://github.com/gradido/gradido/releases/latest',
|
||||
)
|
||||
})
|
||||
|
||||
it('git commit hash and link', 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)')
|
||||
expect(wrapper.find('div.copyright').findAll('a').at(2).attributes('href')).toEqual(
|
||||
'https://github.com/gradido/gradido/commit/ACCEDEDC001D00DC001D00DC001D00DC001CAFA',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('links to gradido.net', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user