[Test] Update sprite test to give more useful error messages (#5281)

This commit is contained in:
NightKev 2025-02-08 10:54:45 -08:00 committed by GitHub
parent 66024c9bcd
commit 090a60dfba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -147,7 +147,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check female variant files", () => {
@ -156,7 +156,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check back female variant files", () => {
@ -165,7 +165,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check back male back variant files", () => {
@ -176,7 +176,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check exp back variant files", () => {
@ -185,7 +185,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check exp female variant files", () => {
@ -194,7 +194,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("check exp male variant files", () => {
@ -206,7 +206,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors", errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
// check over every file if it's correctly set in the masterlist
@ -217,7 +217,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant back female and check if present in masterlist", () => {
@ -226,7 +226,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant back male and check if present in masterlist", () => {
@ -236,7 +236,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant exp back and check if present in masterlist", () => {
@ -245,7 +245,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant exp female and check if present in masterlist", () => {
@ -254,7 +254,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant exp male and check if present in masterlist", () => {
@ -263,7 +263,7 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
it("look over every file in variant root and check if present in masterlist", () => {
@ -272,6 +272,6 @@ describe("check if every variant's sprite are correctly set", () => {
if (errors.length) {
console.log("errors for ", dirPath, errors);
}
expect(errors.length).toBe(0);
expect(errors).toEqual([]);
});
});