Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #196 from howardchung/patch-1
Browse files Browse the repository at this point in the history
add basic test for requestMatchDetails
  • Loading branch information
rjackson committed Jan 1, 2016
2 parents da0bd6f + 7ac0717 commit 745d859
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,6 @@ describe('Dota2', function() {
it('should fetch a paginated and filtered list of a player\'s matches'); // TODO
});

describe('#requestProfile', function(){
it('should fetch an account\'s profile'); // TODO
});

describe('#requestProfileCard', function(){
it('should fetch an account\'s profile card'); // TODO
});
Expand All @@ -221,7 +217,12 @@ describe('Dota2', function() {
});

describe('#requestMatchDetails', function(){
it('should fetch data on a given match id'); // TODO
it('should fetch data on a given match id', function(done){
Dota2.requestMatchDetails(2038049617, function(err, details){
should.exist(details.replay_salt);
done(err);
});
});
});

describe('#requestMatchmakingStats', function(){
Expand Down Expand Up @@ -325,4 +326,4 @@ describe('Dota2', function() {
});

});
});
});

0 comments on commit 745d859

Please sign in to comment.