Skip to content

Commit

Permalink
Add legendary armory to the account blob
Browse files Browse the repository at this point in the history
  • Loading branch information
queicherius committed Jul 24, 2021
1 parent 6e047e0 commit ce5d718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/endpoints/account-blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function blob (parent) {
'home.cats': wrap(() => client.account().home().cats().get()),
'home.nodes': wrap(() => client.account().home().nodes().get()),
guilds: wrap(() => accountGuilds(client)),
legendaryarmory: wrap(() => client.account().legendaryarmory().get()),
luck: wrap(() => client.account().luck().get()),
mailcarriers: wrap(() => client.account().mailcarriers().get()),
masteries: wrap(() => client.account().masteries().get()),
Expand Down
2 changes: 2 additions & 0 deletions tests/endpoints/account-blob.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function mockClient (hasGuildPermission) {
nodes: () => ({ get: () => _s(['quartz_node', 'airship_cargo']) })
}),
inventory: () => ({ get: () => _s([{ id: 123, foo: 'bar' }]) }),
legendaryarmory: () => ({ get: () => _s([{ id: 123, count: 1 }]) }),
luck: () => ({ get: () => _s(123) }),
mailcarriers: () => ({ get: () => _s([1, 2, 3]) }),
masteries: () => ({ get: () => _s([{ id: 123, foo: 'bar' }]) }),
Expand Down Expand Up @@ -100,6 +101,7 @@ const expectedResponse = {
cats: [{ id: 1, hint: 'chicken' }],
nodes: ['quartz_node', 'airship_cargo']
},
legendaryarmory: [{ id: 123, count: 1 }],
luck: 123,
mailcarriers: [1, 2, 3],
masteries: [{ id: 123, foo: 'bar' }],
Expand Down

0 comments on commit ce5d718

Please sign in to comment.