Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
booxood committed Aug 22, 2016
1 parent 8012727 commit 72b9e3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Options:

### Dota2Api.prototype.getTopLiveGame([options])
Options:
- **parner (int32)** – Which partner's games to use.
- **partner (int32)** – Which partner's games to use.

**Methods relating to Dota 2.**

Expand Down
3 changes: 1 addition & 2 deletions lib/registeredApiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ function getTopLiveGame(options) {

return this._request(path, validOptionKeys, options);
}
// TODO: check method GetTopLiveGame

// IEconDOTA2_<ID> part

Expand Down Expand Up @@ -133,4 +132,4 @@ exports.default = {
getRarities: getRarities,
getHeroes: getHeroes,
getTournamentPrizePool: getTournamentPrizePool
};
};
2 changes: 1 addition & 1 deletion src/registeredApiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getTournamentPlayerStats(options) {
}

export function getTopLiveGame(options) {
const validOptionKeys = ['parner'];
const validOptionKeys = ['partner'];
const path = `IDOTA2Match_${this.ID}/GetTopLiveGame/v1`;

return this._request(path, validOptionKeys, options);
Expand Down
2 changes: 1 addition & 1 deletion test/dota2-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('Dota2Api test case', function() {
});

it('should return , GetTopLiveGame', function(done) {
da.getTopLiveGame({parner: 1}).then(null, function(result){
da.getTopLiveGame({partner: 1}).then(null, function(result){
should.exist(result);
done();
});
Expand Down

0 comments on commit 72b9e3f

Please sign in to comment.