Fixed convertToCurseForgeVersions test

This commit is contained in:
Kir_Antipov 2021-09-26 14:06:37 +03:00
parent 10f0854743
commit a44ad373a7

View file

@ -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: {