fix: Support -rc releases in version unit test. Fixes #1886
This commit is contained in:
parent
94d9d79c5d
commit
7ddb023c8d
2 changed files with 14 additions and 1 deletions
|
@ -18,7 +18,12 @@ export const sharedPluginTests = plugin => {
|
|||
chai.expect(plugin.version.length).to.be.greaterThan(2)
|
||||
})
|
||||
it('Version should be a proper semantic version', () => {
|
||||
chai.expect(plugin.version.split('.').length).to.equal(3)
|
||||
const chunks = plugin.version.split('.')
|
||||
if (chunks.length > 3) {
|
||||
chai.expect(plugin.version.split('.').length).to.equal(4)
|
||||
chai.expect(chunks[2]).to.contain('-rc')
|
||||
}
|
||||
else chai.expect(plugin.version.split('.').length).to.equal(3)
|
||||
})
|
||||
|
||||
if ([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue