Merge pull request 'Add tests to #3' (#8) from sfr/pleroma-fe:develop into develop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: http://akkoma.dev/AkkomaGang/pleroma-fe/pulls/8
This commit is contained in:
commit
c1a8dc34da
1 changed files with 8 additions and 0 deletions
|
@ -8,4 +8,12 @@ describe('extractCommit', () => {
|
|||
it('return short commit hash without branch name', () => {
|
||||
expect(extractCommit('1.0.0-45-g5e7aeebc-branch')).to.eql('5e7aeebc')
|
||||
})
|
||||
|
||||
it('return branch name', () => {
|
||||
expect(extractCommit('1.0.0-branch')).to.eql('branch')
|
||||
})
|
||||
|
||||
it('return version tag', () => {
|
||||
expect(extractCommit('1.0.0')).to.eql('v1.0.0')
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue