Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Jul 14, 2024
1 parent ebd3cb5 commit 8e3adb3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/lib/data/itemAliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
];

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/itemSwitches.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
8 changes: 4 additions & 4 deletions tests/unit/snapshots/banksnapshots.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23759,7 +23759,7 @@ exports[`OSB Creatables 1`] = `
"name": "Bellator ring",
"outputItems": Bank {
"bank": {
"25488": 1,
"28316": 1,
},
"frozen": false,
},
Expand Down Expand Up @@ -23810,7 +23810,7 @@ exports[`OSB Creatables 1`] = `
"name": "Ultor ring",
"outputItems": Bank {
"bank": {
"25485": 1,
"28307": 1,
},
"frozen": false,
},
Expand Down Expand Up @@ -23861,7 +23861,7 @@ exports[`OSB Creatables 1`] = `
"name": "Magus ring",
"outputItems": Bank {
"bank": {
"25486": 1,
"28313": 1,
},
"frozen": false,
},
Expand Down Expand Up @@ -23966,7 +23966,7 @@ exports[`OSB Creatables 1`] = `
"name": "Venator ring",
"outputItems": Bank {
"bank": {
"25487": 1,
"28310": 1,
},
"frozen": false,
},
Expand Down
16 changes: 2 additions & 14 deletions tests/unit/snapshots/itemSwitches.OSB.json
Original file line number Diff line number Diff line change
@@ -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]"
}
]

0 comments on commit 8e3adb3

Please sign in to comment.