mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-26 03:28:32 +00:00
[Test] Update sprite test to give more useful error messages (#5281)
This commit is contained in:
parent
66024c9bcd
commit
090a60dfba
@ -147,7 +147,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check female variant files", () => {
|
it("check female variant files", () => {
|
||||||
@ -156,7 +156,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check back female variant files", () => {
|
it("check back female variant files", () => {
|
||||||
@ -165,7 +165,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check back male back variant files", () => {
|
it("check back male back variant files", () => {
|
||||||
@ -176,7 +176,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check exp back variant files", () => {
|
it("check exp back variant files", () => {
|
||||||
@ -185,7 +185,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check exp female variant files", () => {
|
it("check exp female variant files", () => {
|
||||||
@ -194,7 +194,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("check exp male variant files", () => {
|
it("check exp male variant files", () => {
|
||||||
@ -206,7 +206,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
console.log("errors", errors);
|
console.log("errors", errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
// check over every file if it's correctly set in the masterlist
|
// 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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
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", () => {
|
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) {
|
if (errors.length) {
|
||||||
console.log("errors for ", dirPath, errors);
|
console.log("errors for ", dirPath, errors);
|
||||||
}
|
}
|
||||||
expect(errors.length).toBe(0);
|
expect(errors).toEqual([]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user