mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-28 19:31:03 -05:00
Fixed convertToCurseForgeVersions
test
This commit is contained in:
parent
10f0854743
commit
a44ad373a7
1 changed files with 7 additions and 1 deletions
|
@ -61,6 +61,12 @@ describe("unifyJava", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("convertToCurseForgeVersions", () => {
|
describe("convertToCurseForgeVersions", () => {
|
||||||
|
// This test can only be executed in the GitHub Actions' environment,
|
||||||
|
// because CurseForge is a little bitch.
|
||||||
|
if (!process.env.CI) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
test("versions are converted to CurseForge ids", async () => {
|
test("versions are converted to CurseForge ids", async () => {
|
||||||
const versions = {
|
const versions = {
|
||||||
gameVersions: {
|
gameVersions: {
|
||||||
|
@ -68,7 +74,7 @@ describe("convertToCurseForgeVersions", () => {
|
||||||
"21w37a": 8633,
|
"21w37a": 8633,
|
||||||
"1.18 (snapshot)": 8633,
|
"1.18 (snapshot)": 8633,
|
||||||
"1.18-rc1": 8633,
|
"1.18-rc1": 8633,
|
||||||
"1.17-pre3": 73242,
|
"1.17-pre3": 8282,
|
||||||
"1.17.1": 8516,
|
"1.17.1": 8516,
|
||||||
},
|
},
|
||||||
loaders: {
|
loaders: {
|
||||||
|
|
Loading…
Reference in a new issue