Skip to content

Commit

Permalink
Include uncleaned version in semver test
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Mar 26, 2021
1 parent 0472ca4 commit 37ac649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/process.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test("filters based on semver", () => {
[
{
name: "package 1",
versions: [{ version: "1.0.0" }, { version: "2.0.1" }, { version: "3.10.2" }],
versions: [{ version: "1.0.0" }, { version: "2.0.1" }, { version: "v3.10.2" }],
},
],
{
Expand All @@ -41,7 +41,7 @@ test("filters based on semver", () => {

expect(result.length).toBe(2)
expect(result[0].version).toBe("1.0.0")
expect(result[1].version).toBe("3.10.2")
expect(result[1].version).toBe("v3.10.2")
})

test("filters based on regex", () => {
Expand Down

0 comments on commit 37ac649

Please sign in to comment.