From a3f33851919e7e46e3f5f585c10df28ee816eb5e Mon Sep 17 00:00:00 2001 From: danocmx Date: Sat, 12 Oct 2024 21:34:03 +0200 Subject: [PATCH] fix: yet another item with kit in the name --- src/parseString/Attributes/getUsableItem.ts | 3 ++- test/parseString.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/parseString/Attributes/getUsableItem.ts b/src/parseString/Attributes/getUsableItem.ts index f1b29e6..82ebbf2 100644 --- a/src/parseString/Attributes/getUsableItem.ts +++ b/src/parseString/Attributes/getUsableItem.ts @@ -54,7 +54,8 @@ function isStrangifierChemistrySet(name: string): boolean { const KIT_EXCEPTIONS = [ "Killer's Kit", "Coffin Kit", - "Summer Starter Kit" + "Summer Starter Kit", + "Chiromancer's Kit" ]; function getItemIfTarget(name: string): string | void { diff --git a/test/parseString.js b/test/parseString.js index 19177b0..66ff0ae 100644 --- a/test/parseString.js +++ b/test/parseString.js @@ -647,6 +647,16 @@ describe('parseString', () => { quality: 'Unusual', }); }); + + it('Case #52 - Chiromancer\'s Kit', () => { + const itemObject = parseString("Chiromancer's Kit", false, false); + + assert.deepEqual(itemObject, { + name: "Chiromancer's Kit", + craftable: true, + quality: 'Unique' + }); + }) }); describe('parseString with numbers', () => {