Skip to content

Commit b7da5ae

Browse files
committed
More tests added
1 parent 5180c66 commit b7da5ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/index.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ describe("Test version parse successful", () => {
2929
["5.0.3-SNAPSHOT", 5, 0, 3, "SNAPSHOT", null],
3030
["5.0.0-BETA-16-SNAPSHOT", 5, 0, 0, "BETA-16-SNAPSHOT", null],
3131
["5.0.0-BETA-16-SNAPSHOT+build.2017-03-15.3ecfad", 5, 0, 0, "BETA-16-SNAPSHOT", "build.2017-03-15.3ecfad"],
32-
["5.0.0-TESTNG6-BETA-16-SNAPSHOT+build.2017-03-15.3ecfad", 5, 0, 0, "TESTNG6-BETA-16-SNAPSHOT", "build.2017-03-15.3ecfad"]
32+
["5.0.0-TESTNG6-BETA-16-SNAPSHOT+build.2017-03-15.3ecfad", 5, 0, 0, "TESTNG6-BETA-16-SNAPSHOT", "build.2017-03-15.3ecfad"],
33+
["0.0.1-ALPHA-SNAPSHOT", 0, 0, 1, "ALPHA-SNAPSHOT", null]
3334
]).it("When versions is %s", (version, major, minor, patch, prerelease, buildmetadata) => {
3435
const result = index.Version.parseVersion(version);
3536
expect(result.raw).toBe(version);
@@ -231,7 +232,8 @@ PRERELEASE_INCREMENT_TEST_CASES = [
231232
prerelease: "TESTNG7-BETA-7-SNAPSHOT"
232233
}), "1.2.3-TESTNG7-BETA-8-SNAPSHOT+build.2017-02-03.3e1f4d"],
233234
[new index.Version({...CURRENT_VERSION, prerelease: "TESTNG6-RC1"}), "1.2.3-TESTNG6-RC2+build.2017-02-03.3e1f4d"],
234-
[new index.Version({...CURRENT_VERSION, prerelease: "TESTNG6-RC-1"}), "1.2.3-TESTNG6-RC-2+build.2017-02-03.3e1f4d"]
235+
[new index.Version({...CURRENT_VERSION, prerelease: "TESTNG6-RC-1"}), "1.2.3-TESTNG6-RC-2+build.2017-02-03.3e1f4d"],
236+
[new index.Version({...CURRENT_VERSION, prerelease: "ALPHA-SNAPSHOT"}), "1.2.3-ALPHA-SNAPSHOT+build.2017-02-03.3e1f4d"],
235237
];
236238

237239
describe("Test prerelease increments", () => {

0 commit comments

Comments
 (0)