- move pre-release detection to "versioning"

This commit is contained in:
Mike Penz
2023-06-18 15:44:21 +00:00
committed by GitHub
parent 547101fba0
commit 236a880ab7
4 changed files with 40 additions and 21 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import { TagInfo, filterTags, sortTags } from "github-pr-collector/lib/tags"
import { TagInfo, filterTags, prepareAndSortTags } from "github-pr-collector/lib/tags"
jest.setTimeout(180000)
@@ -17,7 +17,7 @@ it('Should order tags correctly using semver', async () => {
const tagResolver = {
method: 'semver'
}
const sorted = sortTags(tags, tagResolver)
const sorted = prepareAndSortTags(tags, tagResolver)
.map(function (tag) {
return tag.name
})
@@ -46,7 +46,7 @@ it('Should order tags correctly using semver', async () => {
const tagResolver = {
method: 'non-existing-method'
}
const sorted = sortTags(tags, tagResolver)
const sorted = prepareAndSortTags(tags, tagResolver)
.map(function (tag) {
return tag.name
})
@@ -75,7 +75,7 @@ it('Should order tags alphabetical', async () => {
const tagResolver = {
method: 'sort'
}
const sorted = sortTags(tags, tagResolver)
const sorted = prepareAndSortTags(tags, tagResolver)
.map(function (tag) {
return tag.name
})