mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 09:49:30 +02:00
fix: status-effect test
This commit is contained in:
parent
fc6fa0bef9
commit
e53a3faeee
@ -18,44 +18,45 @@ describe("status-effect", () => {
|
|||||||
mockI18next();
|
mockI18next();
|
||||||
|
|
||||||
const text = getStatusEffectObtainText(statusEffect, pokemonName);
|
const text = getStatusEffectObtainText(statusEffect, pokemonName);
|
||||||
expect(text).toBe("statusEffect:none.obtain");
|
console.log("text:", text);
|
||||||
|
expect(text).toBe("");
|
||||||
|
|
||||||
const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, "");
|
const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, "");
|
||||||
expect(emptySourceText).toBe("statusEffect:none.obtain");
|
expect(emptySourceText).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the source-obtain text", () => {
|
it("should return the source-obtain text", () => {
|
||||||
mockI18next();
|
mockI18next();
|
||||||
|
|
||||||
const text = getStatusEffectObtainText(statusEffect, pokemonName, sourceText);
|
const text = getStatusEffectObtainText(statusEffect, pokemonName, sourceText);
|
||||||
expect(text).toBe("statusEffect:none.obtainSource");
|
expect(text).toBe("");
|
||||||
|
|
||||||
const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, "");
|
const emptySourceText = getStatusEffectObtainText(statusEffect, pokemonName, "");
|
||||||
expect(emptySourceText).not.toBe("statusEffect:none.obtainSource");
|
expect(emptySourceText).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the activation text", () => {
|
it("should return the activation text", () => {
|
||||||
mockI18next();
|
mockI18next();
|
||||||
const text = getStatusEffectActivationText(statusEffect, pokemonName);
|
const text = getStatusEffectActivationText(statusEffect, pokemonName);
|
||||||
expect(text).toBe("statusEffect:none.activation");
|
expect(text).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the overlap text", () => {
|
it("should return the overlap text", () => {
|
||||||
mockI18next();
|
mockI18next();
|
||||||
const text = getStatusEffectOverlapText(statusEffect, pokemonName);
|
const text = getStatusEffectOverlapText(statusEffect, pokemonName);
|
||||||
expect(text).toBe("statusEffect:none.overlap");
|
expect(text).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the heal text", () => {
|
it("should return the heal text", () => {
|
||||||
mockI18next();
|
mockI18next();
|
||||||
const text = getStatusEffectHealText(statusEffect, pokemonName);
|
const text = getStatusEffectHealText(statusEffect, pokemonName);
|
||||||
expect(text).toBe("statusEffect:none.heal");
|
expect(text).toBe("");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return the descriptor", () => {
|
it("should return the descriptor", () => {
|
||||||
mockI18next();
|
mockI18next();
|
||||||
const text = getStatusEffectDescriptor(statusEffect);
|
const text = getStatusEffectDescriptor(statusEffect);
|
||||||
expect(text).toBe("statusEffect:none.description");
|
expect(text).toBe("");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user