mirror of
https://github.com/jlengrand/dotaClient.git
synced 2026-03-10 08:11:18 +00:00
Adding failing test
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
.openapi-generator
|
||||
.openapi-generator-ignore
|
||||
.idea
|
||||
ijhttp
|
||||
ijhttp.zip
|
||||
|
||||
@@ -3,3 +3,10 @@
|
||||
### GET /health
|
||||
# @name healthGet
|
||||
GET http://api.opendota.com/api/health
|
||||
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
client.assert(response.status === 200, "Response status is not 200");
|
||||
});
|
||||
%}
|
||||
@@ -4,6 +4,14 @@
|
||||
# @name heroesGet
|
||||
GET http://api.opendota.com/api/heroes
|
||||
|
||||
|
||||
> {%
|
||||
client.test("Request executed successfully", function() {
|
||||
// client.assert(response.status === 200, "Response status is not 200");
|
||||
client.assert(response.body.length == 126, "DOTA 2 currently has 136 heroes");
|
||||
});
|
||||
%}
|
||||
|
||||
### GET /heroes/{hero_id}/durations
|
||||
# @name heroesHeroIdDurationsGet
|
||||
GET http://api.opendota.com/api/heroes/{{hero_id}}/durations
|
||||
|
||||
Reference in New Issue
Block a user