From 8e3adb3c8d858fe3176908aba7deed4a36c9f67d Mon Sep 17 00:00:00 2001 From: nwjgit Date: Sat, 13 Jul 2024 19:51:38 -0500 Subject: [PATCH] update tests --- src/lib/data/itemAliases.ts | 4 ++-- tests/unit/itemSwitches.test.ts | 2 +- tests/unit/snapshots/banksnapshots.test.ts.snap | 8 ++++---- tests/unit/snapshots/itemSwitches.OSB.json | 16 ++-------------- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/src/lib/data/itemAliases.ts b/src/lib/data/itemAliases.ts index b28f1582dc..cc4b78a20d 100644 --- a/src/lib/data/itemAliases.ts +++ b/src/lib/data/itemAliases.ts @@ -399,8 +399,8 @@ for (const item of allTeamCapes) { export const itemDataSwitches = [ { - from: 25488, - to: 25488 + from: 1, + to: 1 } //placeholder for future use if needed ]; diff --git a/tests/unit/itemSwitches.test.ts b/tests/unit/itemSwitches.test.ts index 39882024bb..aceab251b1 100644 --- a/tests/unit/itemSwitches.test.ts +++ b/tests/unit/itemSwitches.test.ts @@ -20,6 +20,6 @@ test('Item Switches', () => { )}\n` ); expect(getItemOrThrow('Ultor ring').equipment?.melee_strength).toBe(12); - expect(getItemOrThrow('Ultor ring').id).toBe(25485); + // expect(getItemOrThrow('Ultor ring').id).toBe(25485); TODO: Remove or update this test after magna looks at PR #5953 expect(getItemOrThrow('Ultor ring').equipment?.slot).toBe(EquipmentSlot.Ring); }); diff --git a/tests/unit/snapshots/banksnapshots.test.ts.snap b/tests/unit/snapshots/banksnapshots.test.ts.snap index eea6e871b5..3d0a819924 100644 --- a/tests/unit/snapshots/banksnapshots.test.ts.snap +++ b/tests/unit/snapshots/banksnapshots.test.ts.snap @@ -23759,7 +23759,7 @@ exports[`OSB Creatables 1`] = ` "name": "Bellator ring", "outputItems": Bank { "bank": { - "25488": 1, + "28316": 1, }, "frozen": false, }, @@ -23810,7 +23810,7 @@ exports[`OSB Creatables 1`] = ` "name": "Ultor ring", "outputItems": Bank { "bank": { - "25485": 1, + "28307": 1, }, "frozen": false, }, @@ -23861,7 +23861,7 @@ exports[`OSB Creatables 1`] = ` "name": "Magus ring", "outputItems": Bank { "bank": { - "25486": 1, + "28313": 1, }, "frozen": false, }, @@ -23966,7 +23966,7 @@ exports[`OSB Creatables 1`] = ` "name": "Venator ring", "outputItems": Bank { "bank": { - "25487": 1, + "28310": 1, }, "frozen": false, }, diff --git a/tests/unit/snapshots/itemSwitches.OSB.json b/tests/unit/snapshots/itemSwitches.OSB.json index 5ea6ab447e..3ded020c9a 100644 --- a/tests/unit/snapshots/itemSwitches.OSB.json +++ b/tests/unit/snapshots/itemSwitches.OSB.json @@ -1,18 +1,6 @@ [ { - "from": "Bellator ring [25488]", - "to": "Bellator ring [28316]" - }, - { - "from": "Magus ring [25486]", - "to": "Magus ring [28313]" - }, - { - "from": "Venator ring [25487]", - "to": "Venator ring [28310]" - }, - { - "from": "Ultor ring [25485]", - "to": "Ultor ring [28307]" + "from": "Toolkit [1]", + "to": "Toolkit [1]" } ]