1
0
Fork 0

fix(testci): Accept alpha and beta package versions

testci is currently failing now that package versions have been [bumped to `3.0.0-alpha.0`](ae40299 (diff-2d72bdead8afa0798d18995311992d684348a694c2d5e214e8e4d2b6153e4821)). Alpha and beta version numbers have existed before, but only as recently as `v2.1.0-alpha.0` and `v2.7.0-beta.3` respectively, both of which preceded [the assertions in question](7ddb023c8d).

This PR updates those assertions to accept `alpha` or `beta` package versions, in addition to the already-supported `rc` and stable (non-suffixed) package versions.
This commit is contained in:
nikhil 2022-08-24 00:24:03 -04:00
parent 0730541889
commit 6ac0e16d27
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ export const sharedPluginTests = plugin => {
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')
chai.expect(chunks[2]).to.contain.oneOf(['-alpha', '-beta', '-rc'])
}
else chai.expect(plugin.version.split('.').length).to.equal(3)
})