logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

version.service.spec.js (390B)


  1. import { extractCommit } from 'src/services/version/version.service.js'
  2. describe('extractCommit', () => {
  3. it('return short commit hash following "-g" characters', () => {
  4. expect(extractCommit('1.0.0-45-g5e7aeebc')).to.eql('5e7aeebc')
  5. })
  6. it('return short commit hash without branch name', () => {
  7. expect(extractCommit('1.0.0-45-g5e7aeebc-branch')).to.eql('5e7aeebc')
  8. })
  9. })