Skip to content

Commit ce5d718

Browse files
committed
Add legendary armory to the account blob
1 parent 6e047e0 commit ce5d718

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/endpoints/account-blob.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function blob (parent) {
1919
'home.cats': wrap(() => client.account().home().cats().get()),
2020
'home.nodes': wrap(() => client.account().home().nodes().get()),
2121
guilds: wrap(() => accountGuilds(client)),
22+
legendaryarmory: wrap(() => client.account().legendaryarmory().get()),
2223
luck: wrap(() => client.account().luck().get()),
2324
mailcarriers: wrap(() => client.account().mailcarriers().get()),
2425
masteries: wrap(() => client.account().masteries().get()),

tests/endpoints/account-blob.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function mockClient (hasGuildPermission) {
2020
nodes: () => ({ get: () => _s(['quartz_node', 'airship_cargo']) })
2121
}),
2222
inventory: () => ({ get: () => _s([{ id: 123, foo: 'bar' }]) }),
23+
legendaryarmory: () => ({ get: () => _s([{ id: 123, count: 1 }]) }),
2324
luck: () => ({ get: () => _s(123) }),
2425
mailcarriers: () => ({ get: () => _s([1, 2, 3]) }),
2526
masteries: () => ({ get: () => _s([{ id: 123, foo: 'bar' }]) }),
@@ -100,6 +101,7 @@ const expectedResponse = {
100101
cats: [{ id: 1, hint: 'chicken' }],
101102
nodes: ['quartz_node', 'airship_cargo']
102103
},
104+
legendaryarmory: [{ id: 123, count: 1 }],
103105
luck: 123,
104106
mailcarriers: [1, 2, 3],
105107
masteries: [{ id: 123, foo: 'bar' }],

0 commit comments

Comments
 (0)