mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-16 13:05:53 +00:00
* [Parse Error] - Rarity: Magic #285 (#315) * Add in fix Co-authored-by: @vagrant-soul * Adds regression tests * Features/uniqueRollsRewrite (#316) * update with new rolls system * More or less working now * adds fix for some stats from json having + * Features/jewels (#317) * Fix help text on jewels * Add fix for shock * [Not Recognized Modifier] - (most monster map modifiers) #314 * Features/showItemOnHover (#322) * Move row into own component * add tooltip on shift and hover * works MVP * style and fix affix strings * pseudo add * change tooltip method to more dynamic * Corrupted back to red * style updates * Add option for tooltip in settings * Features/relics (#323) * update en strings * translation client strings * Fix relic parse error * Tag text * enable relic filters by default * add spanish? (#324) Co-authored-by: @mgallego * Divider line shows when it shouldn't on non weapons or armour #325 * Features/newRunes (#326) * Rip out old rune code * final removed stuff? * change filter back to number * use new rune filter * done runes * Remove alpha * Features/runeSocketsPart4 (#327) * some stat change is working * iron working? * new betterer way? * DONE DONE DONE * add translation line * version bump
29 lines
682 B
TypeScript
29 lines
682 B
TypeScript
// itemTextToSections.test.ts
|
|
import { __testExports } from "@/parser/Parser";
|
|
import { describe, expect, test } from "vitest";
|
|
import { setupTests } from "../vitest.setup";
|
|
|
|
describe("itemTextToSections", () => {
|
|
setupTests();
|
|
test("empty string should not throw", () => {
|
|
expect(() => __testExports.itemTextToSections("")).not.toThrow();
|
|
});
|
|
test("standard item", () => {
|
|
const sections = __testExports.itemTextToSections(
|
|
`Item Class: Staves
|
|
Rarity: Magic
|
|
Chiming Staff of Havoc
|
|
--------
|
|
Requirements:
|
|
Level: 58
|
|
Int: 133 (unmet)
|
|
--------
|
|
Item Level: 62
|
|
--------
|
|
+5 to Level of all Chaos Spell Skills
|
|
`,
|
|
);
|
|
expect(sections.length).toBe(4);
|
|
});
|
|
});
|