Skip to content

Commit

Permalink
SQNC-47: assert for type.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed Nov 25, 2024
1 parent dc8f71d commit d3c6281
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__tests__/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import version from '../version'

describe('version helper', () => {
it('returns a version number from package.json', () => {
expect(typeof version).to.equal('string')
expect(version).to.match((/^(\d+\.)?(\d+\.)?(\*|\d+)$/g))
})

})

0 comments on commit d3c6281

Please sign in to comment.