Skip to content

Commit

Permalink
Release Version v2.1.1 (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Arjun Adhia <[email protected]>
  • Loading branch information
Austin Paquette and gapuchi authored Aug 12, 2020
1 parent 879eadb commit 842b56d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/runescape/hiscores.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Player } from "../../lib/RuneScape"
import { hiscores } from "../../runescape"

test("Fetch normal player by name (string)", async () => {
return hiscores.getPlayer("Paqt").then(data => {
return hiscores.getPlayer("Zezima").then(data => {
expect(data).toBeDefined()
expect(data).toBeInstanceOf(Player)
})
Expand Down
2 changes: 2 additions & 0 deletions src/lib/RuneScape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class GrandExchangeCategory {

export class Item {
id: number
name: string
examine: string
category: GrandExchangeCategory
members: boolean
Expand All @@ -142,6 +143,7 @@ export class Item {

constructor(item: Jagex.GrandExchange.Item) {
this.id = item.id
this.name = item.name
this.examine = item.description
this.category = new GrandExchangeCategory(item.type)
this.members = item.members === "true" ? true : false
Expand Down

0 comments on commit 842b56d

Please sign in to comment.