Skip to content

Commit

Permalink
fix: yet another item with kit in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
danocmx committed Oct 12, 2024
1 parent 0405971 commit a3f3385
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parseString/Attributes/getUsableItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 10 additions & 0 deletions test/parseString.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit a3f3385

Please sign in to comment.