Skip to content

Commit 842b56d

Browse files
Austin Paquettegapuchi
andauthored
Release Version v2.1.1 (#33)
Co-authored-by: Arjun Adhia <9140008+gapuchi@users.noreply.github.com>
1 parent 879eadb commit 842b56d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/__tests__/runescape/hiscores.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Player } from "../../lib/RuneScape"
22
import { hiscores } from "../../runescape"
33

44
test("Fetch normal player by name (string)", async () => {
5-
return hiscores.getPlayer("Paqt").then(data => {
5+
return hiscores.getPlayer("Zezima").then(data => {
66
expect(data).toBeDefined()
77
expect(data).toBeInstanceOf(Player)
88
})

src/lib/RuneScape.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export class GrandExchangeCategory {
128128

129129
export class Item {
130130
id: number
131+
name: string
131132
examine: string
132133
category: GrandExchangeCategory
133134
members: boolean
@@ -142,6 +143,7 @@ export class Item {
142143

143144
constructor(item: Jagex.GrandExchange.Item) {
144145
this.id = item.id
146+
this.name = item.name
145147
this.examine = item.description
146148
this.category = new GrandExchangeCategory(item.type)
147149
this.members = item.members === "true" ? true : false

0 commit comments

Comments
 (0)