Add tests to #3 #8

Merged
floatingghost merged 1 commit from :develop into develop 2022-06-18 12:20:39 +00:00

View file

@ -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')
})
})