diff --git a/__tests__/__snapshots__/getEvent.test.ts.snap b/__tests__/__snapshots__/getEvent.test.ts.snap index eba93e1c..0f9224b4 100644 --- a/__tests__/__snapshots__/getEvent.test.ts.snap +++ b/__tests__/__snapshots__/getEvent.test.ts.snap @@ -303,7 +303,7 @@ Object { "name": "Nexus", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105473052-preview.jpg", - "views": 74, + "views": 75, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105505492.mp4", @@ -317,11 +317,11 @@ Object { "name": "Nexus", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105505492-preview.jpg", - "views": 52, + "views": 54, }, Object { - "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105482525.mp4", - "name": "M2 | iM - 1vs2 clutch (T - post-plant situation)", + "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105489583.mp4", + "name": "M3 | XELLOW - 1vs2 clutch (T - pre-plant situation)", "team1": Object { "id": 7461, "name": "Copenhagen Flames", @@ -330,12 +330,12 @@ Object { "id": 7187, "name": "Nexus", }, - "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105482525-preview.jpg", - "views": 46, + "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105489583-preview.jpg", + "views": 49, }, Object { - "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105489583.mp4", - "name": "M3 | XELLOW - 1vs2 clutch (T - pre-plant situation)", + "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105482525.mp4", + "name": "M2 | iM - 1vs2 clutch (T - post-plant situation)", "team1": Object { "id": 7461, "name": "Copenhagen Flames", @@ -344,8 +344,8 @@ Object { "id": 7187, "name": "Nexus", }, - "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105489583-preview.jpg", - "views": 46, + "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105482525-preview.jpg", + "views": 48, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105494048.mp4", @@ -359,7 +359,7 @@ Object { "name": "Nexus", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105494048-preview.jpg", - "views": 45, + "views": 46, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105476554.mp4", @@ -373,7 +373,7 @@ Object { "name": "Nexus", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105476554-preview.jpg", - "views": 38, + "views": 39, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105465184.mp4", @@ -401,7 +401,7 @@ Object { "name": "Nexus", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105485834-preview.jpg", - "views": 22, + "views": 23, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1105500005.mp4", @@ -443,7 +443,7 @@ Object { "name": "UMX", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1104404178-preview.jpg", - "views": 37, + "views": 39, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1104402365.mp4", @@ -611,7 +611,7 @@ Object { "name": "K23", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1102806712-preview.jpg", - "views": 191, + "views": 193, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1102809946.mp4", @@ -653,7 +653,7 @@ Object { "name": "K23", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1102823656-preview.jpg", - "views": 61, + "views": 62, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1102818613.mp4", @@ -779,11 +779,11 @@ Object { "name": "Lyngby Vikings", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098642815-preview.jpg", - "views": 16, + "views": 17, }, Object { - "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098630517.mp4", - "name": "M1 | maNkz - 1vs2 clutch (T - post-plant situation)", + "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098636540.mp4", + "name": "M1 | NaToSaphiX - 3 quick AWP kills on the bombsite B defense (2vs3 situation)", "team1": Object { "id": 7461, "name": "Copenhagen Flames", @@ -792,12 +792,12 @@ Object { "id": 8963, "name": "Lyngby Vikings", }, - "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098630517-preview.jpg", - "views": 13, + "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098636540-preview.jpg", + "views": 15, }, Object { - "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098636540.mp4", - "name": "M1 | NaToSaphiX - 3 quick AWP kills on the bombsite B defense (2vs3 situation)", + "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098630517.mp4", + "name": "M1 | maNkz - 1vs2 clutch (T - post-plant situation)", "team1": Object { "id": 7461, "name": "Copenhagen Flames", @@ -806,7 +806,7 @@ Object { "id": 8963, "name": "Lyngby Vikings", }, - "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098636540-preview.jpg", + "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1098630517-preview.jpg", "views": 13, }, Object { @@ -919,7 +919,7 @@ Object { "name": "Tricked", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1097019643-preview.jpg", - "views": 36, + "views": 37, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1097053197.mp4", @@ -961,7 +961,7 @@ Object { "name": "Copenhagen Flames", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C1097056636-preview.jpg", - "views": 18, + "views": 20, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C1096960527.mp4", @@ -1688,7 +1688,7 @@ Object { "name": "eUnited", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C396086130-preview.jpg", - "views": 760, + "views": 761, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C396116386.mp4", @@ -1702,7 +1702,7 @@ Object { "name": "eUnited", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C396116386-preview.jpg", - "views": 599, + "views": 601, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C396075426.mp4", @@ -1716,7 +1716,7 @@ Object { "name": "eUnited", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C396075426-preview.jpg", - "views": 582, + "views": 583, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C396076522.mp4", @@ -1982,7 +1982,7 @@ Object { "name": "Envy", }, "thumbnail": "https://clips-media-assets2.twitch.tv/AT-cm%7C395412463-preview.jpg", - "views": 89, + "views": 90, }, Object { "link": "https://clips-media-assets2.twitch.tv/AT-cm%7C395592271.mp4", diff --git a/__tests__/__snapshots__/getPlayer.test.ts.snap b/__tests__/__snapshots__/getPlayer.test.ts.snap index 94e9445a..69bd0db9 100644 --- a/__tests__/__snapshots__/getPlayer.test.ts.snap +++ b/__tests__/__snapshots__/getPlayer.test.ts.snap @@ -331,6 +331,138 @@ Object { "instagram": "https://www.instagram.com/s1mpleo", "name": "Aleksandr Kostyliev", "news": Array [ + Object { + "link": "/news/33849/pgl-major-antwerp-2022-playoffs-fantasy-game-now-open-to-play", + "name": "PGL Major Antwerp 2022 playoffs Fantasy game now open to play", + }, + Object { + "link": "/news/33824/navi-clinch-second-pgl-major-playoffs-spot", + "name": "NAVI clinch second PGL Major playoffs spot", + }, + Object { + "link": "/news/33803/navi-take-down-g2-big-dispatch-imperial", + "name": "NAVI take down G2, BIG dispatch Imperial", + }, + Object { + "link": "/news/33717/could-furia-be-dark-horses-at-antwerp", + "name": "Could FURIA be dark horses at Antwerp?", + }, + Object { + "link": "/news/33794/bulletpoints-pgl-major-antwerp-legends", + "name": "Bulletpoints: PGL Major Antwerp Legends", + }, + Object { + "link": "/news/33796/fantasy-game-for-pgl-major-antwerp-legends-stage-is-now-live", + "name": "Fantasy game for PGL Major Antwerp Legends Stage is now live", + }, + Object { + "link": "/news/33733/blunders-from-majors-past", + "name": " Blunders from Majors past", + }, + Object { + "link": "/news/33631/expert-take-age-and-motivation-in-counter-strike", + "name": "Expert take: Age and motivation in Counter-Strike", + }, + Object { + "link": "/news/33719/feel-good-stories-from-majors-past", + "name": "Feel good stories from Majors past", + }, + Object { + "link": "/news/33716/team-ranking-april-2022", + "name": "Team Ranking: April 2022", + }, + Object { + "link": "/news/33648/outsiders-qualify-for-pgl-major-navi-secure-final-legends-spot", + "name": "Outsiders qualify for PGL Major, NAVI secure final Legends spot", + }, + Object { + "link": "/news/33642/video-s1mple-1v3s-vitality", + "name": "Video: s1mple 1v3s Vitality", + }, + Object { + "link": "/news/33640/navi-qualify-for-major-fnatic-eliminated", + "name": "NAVI qualify for Major, fnatic eliminated", + }, + Object { + "link": "/news/33629/heroic-qualify-for-antwerp-major-unique-eliminate-quazar", + "name": "Heroic qualify for Antwerp Major, Unique eliminate QUAZAR", + }, + Object { + "link": "/news/33622/heroic-faze-navi-one-win-away-from-major-spot", + "name": "Heroic, FaZe, NAVI one win away from Major spot", + }, + Object { + "link": "/news/33610/when-do-counter-strike-players-peak", + "name": "When do Counter-Strike players peak?", + }, + Object { + "link": "/news/33514/opinion-should-we-be-worried-for-vitality", + "name": "Opinion: Should we be worried for Vitality?", + }, + Object { + "link": "/news/33600/fantasy-pgl-major-antwerp-europe-rmr-a-game-goes-live", + "name": "Fantasy: PGL Major Antwerp Europe RMR A game goes live", + }, + Object { + "link": "/news/33580/faze-return-to-no-1-for-the-first-time-in-four-years", + "name": "FaZe return to No. 1 for the first time in four years", + }, + Object { + "link": "/news/33554/20-years-of-hltvorg", + "name": "20 years of HLTV.org", + }, + Object { + "link": "/news/33557/faze-sweep-navi-set-up-semi-final-against-furia", + "name": "FaZe sweep NAVI, set up semi-final against FURIA", + }, + Object { + "link": "/news/33535/team-ranking-march-2022", + "name": "Team Ranking: March 2022", + }, + Object { + "link": "/news/33524/esl-pro-league-s15-playoffs-fantasy-game-open-to-play", + "name": "ESL Pro League S15 Playoffs Fantasy game open to play", + }, + Object { + "link": "/news/33522/navi-overcome-astralis-set-up-first-place-decider-against-heroic", + "name": "NAVI overcome Astralis, set up first place decider against Heroic", + }, + Object { + "link": "/news/33520/boombl4-back-in-action-on-day-4-of-epl-group-d", + "name": "Boombl4 back in action on day 4 of EPL Group D", + }, + Object { + "link": "/news/33518/navi-secure-pro-league-playoff-berth-after-besting-complexity", + "name": "NAVI secure Pro League playoff berth after besting Complexity", + }, + Object { + "link": "/news/33512/navi-cruise-past-evil-geniuses-with-a-2-0-win", + "name": "NAVI cruise past Evil Geniuses with a 2-0 win", + }, + Object { + "link": "/news/33506/navi-defeat-ago-in-esl-pro-league-group-d-opening-match-after-record-breaking-71-round-second-map", + "name": "NAVI defeat AGO in ESL Pro League Group D opening match after record-breaking 71 round second map", + }, + Object { + "link": "/news/33501/boombl4-to-miss-start-of-esl-pro-league", + "name": "Boombl4 to miss start of ESL Pro League", + }, + Object { + "link": "/news/33500/bulletpoints-esl-pro-league-s15-group-d", + "name": "Bulletpoints: ESL Pro League S15 Group D", + }, + Object { + "link": "/news/33480/fantasy-esl-pro-league-s15-group-d-game-goes-live", + "name": "Fantasy: ESL Pro League S15 Group D game goes live", + }, + Object { + "link": "/news/33440/is-the-modern-awper-really-too-passive", + "name": "Is the modern AWPer really too passive?", + }, + Object { + "link": "/news/33378/was-fazes-katowice-victory-the-best-fairy-tale-run-in-csgo", + "name": "Was FaZe's Katowice victory the best fairy-tale run in CS:GO?", + }, Object { "link": "/news/33365/iem-katowice-storylines-in-numbers", "name": "IEM Katowice storylines in numbers", @@ -4201,12 +4333,12 @@ Object { }, ], "statistics": Object { - "deathsPerRound": 0.61, - "headshots": 38.6, + "deathsPerRound": 0.58, + "headshots": 35.6, "killsPerRound": 0.87, - "mapsPlayed": 34, - "rating": 1.34, - "roundsContributed": 76.3, + "mapsPlayed": 37, + "rating": 1.36, + "roundsContributed": 76.9, }, "team": Object { "id": 4608, diff --git a/__tests__/__snapshots__/getPlayerStats.test.ts.snap b/__tests__/__snapshots__/getPlayerStats.test.ts.snap index 5e3baa81..d4517db9 100644 --- a/__tests__/__snapshots__/getPlayerStats.test.ts.snap +++ b/__tests__/__snapshots__/getPlayerStats.test.ts.snap @@ -12,26 +12,458 @@ Object { "image": "https://img-cdn.hltv.org/playerbodyshot/Q2u6AgnDNYQ3dyObwN4JBX.png?ixlib=java-2.1.0&w=400&s=5e19fa63867872bd78409f6e757ff6c3", "individualStatistics": Object { "firstKillInWonRounds": 20.8, - "fiveKillRounds": 61, - "fourKillRounds": 483, - "grenadeKills": 182, - "oneKillRounds": 12568, - "openingDeaths": 3582, + "fiveKillRounds": 62, + "fourKillRounds": 491, + "grenadeKills": 191, + "oneKillRounds": 12802, + "openingDeaths": 3634, "openingKillRating": 1.24, - "openingKillRatio": 1.61, - "openingKills": 5775, - "otherKills": 245, - "pistolKills": 5854, - "rifleKills": 14151, - "roundsWithKills": 21661, - "smgKills": 871, - "sniperKills": 12854, - "teamWinPercentAfterFirstKill": 75, - "threeKillRounds": 2171, - "twoKillRounds": 6378, - "zeroKillRounds": 18196, + "openingKillRatio": 1.62, + "openingKills": 5888, + "otherKills": 249, + "pistolKills": 5945, + "rifleKills": 14383, + "roundsWithKills": 22079, + "smgKills": 881, + "sniperKills": 13166, + "teamWinPercentAfterFirstKill": 75.1, + "threeKillRounds": 2208, + "twoKillRounds": 6516, + "zeroKillRounds": 18517, }, "matches": Array [ + Object { + "date": 1652631300000, + "deaths": 14, + "kills": 21, + "map": "de_ancient", + "mapStatsId": 138086, + "rating": 1.54, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 4411, + "name": "NIP", + }, + }, + Object { + "date": 1652631300000, + "deaths": 18, + "kills": 17, + "map": "de_mirage", + "mapStatsId": 138084, + "rating": 0.94, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 4411, + "name": "NIP", + }, + }, + Object { + "date": 1652631300000, + "deaths": 15, + "kills": 23, + "map": "de_inferno", + "mapStatsId": 138080, + "rating": 1.7, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 4411, + "name": "NIP", + }, + }, + Object { + "date": 1652552400000, + "deaths": 13, + "kills": 15, + "map": "de_ancient", + "mapStatsId": 138056, + "rating": 1.05, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7532, + "name": "BIG", + }, + }, + Object { + "date": 1652536200000, + "deaths": 20, + "kills": 26, + "map": "de_mirage", + "mapStatsId": 138048, + "rating": 1.12, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 5995, + "name": "G2", + }, + }, + Object { + "date": 1650452400000, + "deaths": 12, + "kills": 16, + "map": "de_mirage", + "mapStatsId": 137120, + "rating": 1.08, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 8135, + "name": "forZe", + }, + }, + Object { + "date": 1650452400000, + "deaths": 13, + "kills": 24, + "map": "de_inferno", + "mapStatsId": 137117, + "rating": 1.38, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 8135, + "name": "forZe", + }, + }, + Object { + "date": 1650370500000, + "deaths": 16, + "kills": 34, + "map": "de_mirage", + "mapStatsId": 137080, + "rating": 1.67, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 9565, + "name": "Vitality", + }, + }, + Object { + "date": 1650370500000, + "deaths": 18, + "kills": 22, + "map": "de_inferno", + "mapStatsId": 137078, + "rating": 1.18, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 9565, + "name": "Vitality", + }, + }, + Object { + "date": 1650284100000, + "deaths": 18, + "kills": 18, + "map": "de_nuke", + "mapStatsId": 137046, + "rating": 1.2, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7175, + "name": "Heroic", + }, + }, + Object { + "date": 1650284100000, + "deaths": 21, + "kills": 23, + "map": "de_inferno", + "mapStatsId": 137044, + "rating": 1.23, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7175, + "name": "Heroic", + }, + }, + Object { + "date": 1650284100000, + "deaths": 14, + "kills": 28, + "map": "de_mirage", + "mapStatsId": 137040, + "rating": 1.47, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7175, + "name": "Heroic", + }, + }, + Object { + "date": 1650212100000, + "deaths": 6, + "kills": 26, + "map": "de_mirage", + "mapStatsId": 137024, + "rating": 2.22, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 10503, + "name": "OG", + }, + }, + Object { + "date": 1650186000000, + "deaths": 16, + "kills": 27, + "map": "de_ancient", + "mapStatsId": 137012, + "rating": 1.45, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 11312, + "name": "QUAZAR", + }, + }, + Object { + "date": 1649439000000, + "deaths": 21, + "kills": 24, + "map": "de_dust2", + "mapStatsId": 136742, + "rating": 1.18, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 6667, + "name": "FaZe", + }, + }, + Object { + "date": 1649439000000, + "deaths": 21, + "kills": 19, + "map": "de_inferno", + "mapStatsId": 136737, + "rating": 1.01, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 6667, + "name": "FaZe", + }, + }, + Object { + "date": 1649007000000, + "deaths": 10, + "kills": 15, + "map": "de_mirage", + "mapStatsId": 136525, + "rating": 1.28, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7175, + "name": "Heroic", + }, + }, + Object { + "date": 1649007000000, + "deaths": 13, + "kills": 22, + "map": "de_overpass", + "mapStatsId": 136522, + "rating": 1.51, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 7175, + "name": "Heroic", + }, + }, + Object { + "date": 1648922100000, + "deaths": 15, + "kills": 29, + "map": "de_inferno", + "mapStatsId": 136492, + "rating": 1.62, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 6665, + "name": "Astralis", + }, + }, + Object { + "date": 1648922100000, + "deaths": 19, + "kills": 31, + "map": "de_nuke", + "mapStatsId": 136487, + "rating": 1.48, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 6665, + "name": "Astralis", + }, + }, + Object { + "date": 1648922100000, + "deaths": 5, + "kills": 21, + "map": "de_ancient", + "mapStatsId": 136483, + "rating": 1.72, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 6665, + "name": "Astralis", + }, + }, + Object { + "date": 1648834200000, + "deaths": 19, + "kills": 25, + "map": "de_dust2", + "mapStatsId": 136447, + "rating": 1.43, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 5005, + "name": "Complexity", + }, + }, + Object { + "date": 1648834200000, + "deaths": 19, + "kills": 21, + "map": "de_ancient", + "mapStatsId": 136444, + "rating": 1.15, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 5005, + "name": "Complexity", + }, + }, + Object { + "date": 1648753200000, + "deaths": 10, + "kills": 23, + "map": "de_dust2", + "mapStatsId": 136413, + "rating": 1.73, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 10399, + "name": "Evil Geniuses", + }, + }, + Object { + "date": 1648753200000, + "deaths": 9, + "kills": 22, + "map": "de_overpass", + "mapStatsId": 136404, + "rating": 1.9, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 10399, + "name": "Evil Geniuses", + }, + }, + Object { + "date": 1648636200000, + "deaths": 44, + "kills": 65, + "map": "de_mirage", + "mapStatsId": 136253, + "rating": 1.34, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 8068, + "name": "AGO", + }, + }, + Object { + "date": 1648636200000, + "deaths": 4, + "kills": 21, + "map": "de_dust2", + "mapStatsId": 136248, + "rating": 2.13, + "team1": Object { + "id": 4608, + "name": "Natus Vincere", + }, + "team2": Object { + "id": 8068, + "name": "AGO", + }, + }, Object { "date": 1645885800000, "deaths": 22, @@ -24196,17 +24628,17 @@ Object { "name": "Aleksandr Kostyliev", "overviewStatistics": Object { "assistsPerRound": 0.1, - "damagePerRound": 86.4, - "deaths": 25440, + "damagePerRound": 86.5, + "deaths": 25863, "deathsPerRound": 0.64, - "grenadeDamagePerRound": 2.3, - "headshots": 41.3, + "grenadeDamagePerRound": 2.4, + "headshots": 41.2, "kdRatio": 1.34, - "kills": 34091, + "kills": 34749, "killsPerRound": 0.86, - "mapsPlayed": 1510, + "mapsPlayed": 1537, "rating1": 1.25, - "roundsPlayed": 39857, + "roundsPlayed": 40596, "savedByTeammatePerRound": 0.08, "savedTeammatesPerRound": 0.11, }, @@ -24618,27 +25050,571 @@ Object { "ign": "neaLaN", "image": "https://img-cdn.hltv.org/playerbodyshot/Qt3fS2N8tneajbvxDirlaw.png?ixlib=java-2.1.0&w=400&s=f0888eb650dbab4a417a3e0254681a27", "individualStatistics": Object { - "firstKillInWonRounds": 14.2, - "fiveKillRounds": 16, - "fourKillRounds": 124, - "grenadeKills": 197, - "oneKillRounds": 8011, - "openingDeaths": 2967, + "firstKillInWonRounds": 14.1, + "fiveKillRounds": 17, + "fourKillRounds": 127, + "grenadeKills": 208, + "oneKillRounds": 8283, + "openingDeaths": 3031, "openingKillRating": 0.99, - "openingKillRatio": 0.91, - "openingKills": 2714, - "otherKills": 72, - "pistolKills": 3030, - "rifleKills": 13039, - "roundsWithKills": 12148, - "smgKills": 946, - "sniperKills": 221, - "teamWinPercentAfterFirstKill": 71.6, - "threeKillRounds": 887, - "twoKillRounds": 3110, - "zeroKillRounds": 14772, + "openingKillRatio": 0.92, + "openingKills": 2790, + "otherKills": 76, + "pistolKills": 3111, + "rifleKills": 13511, + "roundsWithKills": 12561, + "smgKills": 970, + "sniperKills": 229, + "teamWinPercentAfterFirstKill": 71.5, + "threeKillRounds": 920, + "twoKillRounds": 3214, + "zeroKillRounds": 15243, }, "matches": Array [ + Object { + "date": 1651737600000, + "deaths": 13, + "kills": 18, + "map": "de_dust2", + "mapStatsId": 137839, + "rating": 1.28, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8068, + "name": "AGO", + }, + }, + Object { + "date": 1651737600000, + "deaths": 10, + "kills": 20, + "map": "de_mirage", + "mapStatsId": 137838, + "rating": 1.59, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8068, + "name": "AGO", + }, + }, + Object { + "date": 1651737600000, + "deaths": 18, + "kills": 16, + "map": "de_ancient", + "mapStatsId": 137837, + "rating": 0.95, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8068, + "name": "AGO", + }, + }, + Object { + "date": 1651577100000, + "deaths": 16, + "kills": 13, + "map": "de_nuke", + "mapStatsId": 137784, + "rating": 0.86, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10577, + "name": "SINNERS", + }, + }, + Object { + "date": 1651577100000, + "deaths": 19, + "kills": 10, + "map": "de_inferno", + "mapStatsId": 137780, + "rating": 0.69, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10577, + "name": "SINNERS", + }, + }, + Object { + "date": 1651577100000, + "deaths": 19, + "kills": 12, + "map": "de_overpass", + "mapStatsId": 137778, + "rating": 0.75, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10577, + "name": "SINNERS", + }, + }, + Object { + "date": 1651416600000, + "deaths": 20, + "kills": 16, + "map": "de_nuke", + "mapStatsId": 137696, + "rating": 0.85, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7020, + "name": "Spirit", + }, + }, + Object { + "date": 1651416600000, + "deaths": 24, + "kills": 13, + "map": "de_mirage", + "mapStatsId": 137690, + "rating": 0.78, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7020, + "name": "Spirit", + }, + }, + Object { + "date": 1651154400000, + "deaths": 13, + "kills": 22, + "map": "de_mirage", + "mapStatsId": 137517, + "rating": 1.39, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7441, + "name": "ECLOT", + }, + }, + Object { + "date": 1651154400000, + "deaths": 16, + "kills": 17, + "map": "de_inferno", + "mapStatsId": 137512, + "rating": 0.99, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7441, + "name": "ECLOT", + }, + }, + Object { + "date": 1651154400000, + "deaths": 12, + "kills": 18, + "map": "de_overpass", + "mapStatsId": 137508, + "rating": 1.22, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7441, + "name": "ECLOT", + }, + }, + Object { + "date": 1649779200000, + "deaths": 17, + "kills": 24, + "map": "de_mirage", + "mapStatsId": 136883, + "rating": 1.28, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7865, + "name": "HAVU", + }, + }, + Object { + "date": 1649001600000, + "deaths": 17, + "kills": 20, + "map": "de_overpass", + "mapStatsId": 136526, + "rating": 1.07, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10333, + "name": "Sangal", + }, + }, + Object { + "date": 1649001600000, + "deaths": 12, + "kills": 21, + "map": "de_inferno", + "mapStatsId": 136517, + "rating": 1.3, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10333, + "name": "Sangal", + }, + }, + Object { + "date": 1648746000000, + "deaths": 10, + "kills": 24, + "map": "de_mirage", + "mapStatsId": 136407, + "rating": 1.82, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10333, + "name": "Sangal", + }, + }, + Object { + "date": 1648746000000, + "deaths": 15, + "kills": 14, + "map": "de_overpass", + "mapStatsId": 136397, + "rating": 0.96, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10333, + "name": "Sangal", + }, + }, + Object { + "date": 1648746000000, + "deaths": 15, + "kills": 13, + "map": "de_inferno", + "mapStatsId": 136385, + "rating": 0.93, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 10333, + "name": "Sangal", + }, + }, + Object { + "date": 1648663200000, + "deaths": 14, + "kills": 18, + "map": "de_nuke", + "mapStatsId": 136320, + "rating": 1.33, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8362, + "name": "MAD Lions", + }, + }, + Object { + "date": 1648663200000, + "deaths": 17, + "kills": 7, + "map": "de_inferno", + "mapStatsId": 136313, + "rating": 0.61, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8362, + "name": "MAD Lions", + }, + }, + Object { + "date": 1648663200000, + "deaths": 21, + "kills": 21, + "map": "de_mirage", + "mapStatsId": 136303, + "rating": 1.1, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 8362, + "name": "MAD Lions", + }, + }, + Object { + "date": 1648548000000, + "deaths": 18, + "kills": 14, + "map": "de_nuke", + "mapStatsId": 136193, + "rating": 0.94, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11419, + "name": "ECSTATIC", + }, + }, + Object { + "date": 1648548000000, + "deaths": 19, + "kills": 21, + "map": "de_inferno", + "mapStatsId": 136187, + "rating": 1.1, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11419, + "name": "ECSTATIC", + }, + }, + Object { + "date": 1648548000000, + "deaths": 11, + "kills": 13, + "map": "de_overpass", + "mapStatsId": 136184, + "rating": 1.19, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11419, + "name": "ECSTATIC", + }, + }, + Object { + "date": 1648483200000, + "deaths": 19, + "kills": 20, + "map": "de_dust2", + "mapStatsId": 136173, + "rating": 1.08, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11113, + "name": "AVE", + }, + }, + Object { + "date": 1648483200000, + "deaths": 18, + "kills": 20, + "map": "de_overpass", + "mapStatsId": 136166, + "rating": 1.15, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11113, + "name": "AVE", + }, + }, + Object { + "date": 1648483200000, + "deaths": 18, + "kills": 12, + "map": "de_ancient", + "mapStatsId": 136161, + "rating": 0.82, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11113, + "name": "AVE", + }, + }, + Object { + "date": 1648150200000, + "deaths": 7, + "kills": 16, + "map": "de_overpass", + "mapStatsId": 135911, + "rating": 1.57, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11606, + "name": "FAMBIT", + }, + }, + Object { + "date": 1648150200000, + "deaths": 18, + "kills": 23, + "map": "de_mirage", + "mapStatsId": 135910, + "rating": 1.31, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11606, + "name": "FAMBIT", + }, + }, + Object { + "date": 1648150200000, + "deaths": 19, + "kills": 14, + "map": "de_nuke", + "mapStatsId": 135905, + "rating": 0.73, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11606, + "name": "FAMBIT", + }, + }, + Object { + "date": 1647507000000, + "deaths": 20, + "kills": 22, + "map": "de_overpass", + "mapStatsId": 135488, + "rating": 1.07, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7461, + "name": "Copenhagen Flames", + }, + }, + Object { + "date": 1647507000000, + "deaths": 20, + "kills": 24, + "map": "de_nuke", + "mapStatsId": 135483, + "rating": 1.2, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7461, + "name": "Copenhagen Flames", + }, + }, + Object { + "date": 1647507000000, + "deaths": 19, + "kills": 19, + "map": "de_mirage", + "mapStatsId": 135480, + "rating": 1.01, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 7461, + "name": "Copenhagen Flames", + }, + }, + Object { + "date": 1647334200000, + "deaths": 17, + "kills": 19, + "map": "de_overpass", + "mapStatsId": 135365, + "rating": 1.24, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11501, + "name": "HEET", + }, + }, + Object { + "date": 1647334200000, + "deaths": 21, + "kills": 22, + "map": "de_inferno", + "mapStatsId": 135362, + "rating": 1.21, + "team1": Object { + "id": 7244, + "name": "K23", + }, + "team2": Object { + "id": 11501, + "name": "HEET", + }, + }, Object { "date": 1646406300000, "deaths": 22, @@ -40787,17 +41763,17 @@ Object { "name": "Sanzhar Iskhakov", "overviewStatistics": Object { "assistsPerRound": 0.14, - "damagePerRound": 73.9, - "deaths": 18803, + "damagePerRound": 74, + "deaths": 19365, "deathsPerRound": 0.7, "grenadeDamagePerRound": 4.8, - "headshots": 55.7, + "headshots": 55.9, "kdRatio": 0.93, - "kills": 17468, + "kills": 18064, "killsPerRound": 0.65, - "mapsPlayed": 1009, + "mapsPlayed": 1043, "rating2": 1, - "roundsPlayed": 26920, + "roundsPlayed": 27804, "savedByTeammatePerRound": 0.09, "savedTeammatesPerRound": 0.09, }, diff --git a/__tests__/__snapshots__/getTeam.test.ts.snap b/__tests__/__snapshots__/getTeam.test.ts.snap index 38e27cba..2fbc2761 100644 --- a/__tests__/__snapshots__/getTeam.test.ts.snap +++ b/__tests__/__snapshots__/getTeam.test.ts.snap @@ -3,8 +3,8 @@ exports[`getTeam 1`] = ` Object { "country": Object { - "code": "RU", - "name": "Russia", + "code": "UA", + "name": "Ukraine", }, "facebook": undefined, "id": 4608, @@ -13,8 +13,400 @@ Object { "name": "Natus Vincere", "news": Array [ Object { - "link": "/news/33376/final-europe-rmr-open-qualifier-set-to-start-poizon-stands-in-for-fnatic", - "name": "Final Europe RMR Open Qualifier set to start, poizon stands in for fnatic", + "link": "/news/33849/pgl-major-antwerp-2022-playoffs-fantasy-game-now-open-to-play", + "name": "PGL Major Antwerp 2022 playoffs Fantasy game now open to play", + }, + Object { + "link": "/news/33843/furia-head-to-major-playoffs-over-g2", + "name": "FURIA head to Major playoffs over G2", + }, + Object { + "link": "/news/33835/ence-claim-fifth-major-playoffs-spot-over-heroic", + "name": "ENCE claim fifth Major playoffs spot over Heroic", + }, + Object { + "link": "/news/33834/hampus-this-is-the-lineup-i-want-to-see-us-keep-going-with", + "name": "hampus: \\"This is the lineup I want to see us keep going with\\"", + }, + Object { + "link": "/news/33832/vitality-eliminate-big-after-a-four-hour-thriller", + "name": "Vitality eliminate BIG after a four-hour thriller", + }, + Object { + "link": "/news/33828/video-navi-clinch-3-0-record-as-legends-stage-heats-up-moses-recaps-pgl-major-antwerp", + "name": "Video: NAVI clinch 3-0 record as Legends stage heats up - moses recaps PGL Major Antwerp", + }, + Object { + "link": "/news/33825/round-4-matchups-set-in-antwerp", + "name": "Round 4 matchups set in Antwerp", + }, + Object { + "link": "/news/33824/navi-clinch-second-pgl-major-playoffs-spot", + "name": "NAVI clinch second PGL Major playoffs spot", + }, + Object { + "link": "/news/33816/major-teams-reach-agreement-not-to-use-smoke-cancel-bug", + "name": "Major teams reach agreement not to use smoke cancel bug", + }, + Object { + "link": "/news/33815/m0nesys-controversial-mirage-smoke-approved-by-pgl", + "name": "m0NESY's controversial Mirage smoke approved by PGL", + }, + Object { + "link": "/news/33814/video-upsets-strike-on-first-day-of-legends-stage-moses-recaps-pgl-major-antwerp", + "name": "Video: Upsets strike on first day of Legends Stage - moses recaps PGL Major Antwerp", + }, + Object { + "link": "/news/33812/cloud9-vs-faze-headlines-high-octane-round-3", + "name": "Cloud9 vs. FaZe headlines high-octane round 3", + }, + Object { + "link": "/news/33809/navi-and-furia-take-comfortable-victories", + "name": "NAVI and FURIA take comfortable victories", + }, + Object { + "link": "/news/33804/round-2-matchups-set-in-antwerp", + "name": "Round 2 matchups set in Antwerp", + }, + Object { + "link": "/news/33803/navi-take-down-g2-big-dispatch-imperial", + "name": "NAVI take down G2, BIG dispatch Imperial", + }, + Object { + "link": "/news/33717/could-furia-be-dark-horses-at-antwerp", + "name": "Could FURIA be dark horses at Antwerp?", + }, + Object { + "link": "/news/33799/the-crown-that-has-eluded-the-journeyed-igl-karrigans-chance-to-finally-claim-a-major", + "name": "The crown that has eluded the journeyed IGL: karrigan's chance to finally claim a Major", + }, + Object { + "link": "/news/33794/bulletpoints-pgl-major-antwerp-legends", + "name": "Bulletpoints: PGL Major Antwerp Legends", + }, + Object { + "link": "/news/33796/fantasy-game-for-pgl-major-antwerp-legends-stage-is-now-live", + "name": "Fantasy game for PGL Major Antwerp Legends Stage is now live", + }, + Object { + "link": "/news/33791/opening-matches-of-pgl-major-antwerp-legends-stage-set", + "name": "Opening matches of PGL Major Antwerp Legends Stage set", + }, + Object { + "link": "/news/33746/hltvorg-live-from-antwerp", + "name": "HLTV.org live from Antwerp", + }, + Object { + "link": "/news/33744/jerry-deserves-his-flowers", + "name": "Jerry deserves his flowers", + }, + Object { + "link": "/news/33743/pgl-major-antwerp-viewers-guide", + "name": "PGL Major Antwerp viewer's guide", + }, + Object { + "link": "/news/33742/bulletpoints-pgl-major-antwerp-challengers", + "name": "Bulletpoints: PGL Major Antwerp Challengers", + }, + Object { + "link": "/news/33733/blunders-from-majors-past", + "name": " Blunders from Majors past", + }, + Object { + "link": "/news/33727/bulletpoints-pgl-major-antwerp-contenders", + "name": "Bulletpoints: PGL Major Antwerp Contenders", + }, + Object { + "link": "/news/33726/entropiq-mouz-qualify-for-iem-dallas-2022", + "name": "Entropiq, MOUZ qualify for IEM Dallas 2022", + }, + Object { + "link": "/news/33719/feel-good-stories-from-majors-past", + "name": "Feel good stories from Majors past", + }, + Object { + "link": "/news/33720/starting-rosters-subs-and-coaches-locked-in-for-pgl-major-antwerp", + "name": "Starting rosters, subs, and coaches locked in for PGL Major Antwerp", + }, + Object { + "link": "/news/33716/team-ranking-april-2022", + "name": "Team Ranking: April 2022", + }, + Object { + "link": "/news/33712/pain-surpass-furia-to-complete-blast-premier-spring-final-team-list", + "name": "paiN surpass FURIA to complete BLAST Premier Spring Final team list", + }, + Object { + "link": "/news/33711/ence-qualify-for-blast-premier-spring-final-2022", + "name": "ENCE qualify for BLAST Premier Spring Final 2022", + }, + Object { + "link": "/news/33708/blast-returns-to-copenhagens-royal-arena-for-fall-finals", + "name": "BLAST returns to Copenhagen's Royal Arena for Fall Finals", + }, + Object { + "link": "/news/33704/outsiders-withdraw-from-iem-dallas-2022-closed-qualifier", + "name": "Outsiders withdraw from IEM Dallas 2022 Closed Qualifier", + }, + Object { + "link": "/news/33698/crisby-to-coach-new-og-academy-team", + "name": "crisby to coach new OG academy team", + }, + Object { + "link": "/news/33686/liquid-complexity-imperial-and-lfo-qualify-for-iem-dallas", + "name": "Liquid, Complexity, Imperial, and LFO qualify for IEM Dallas", + }, + Object { + "link": "/news/33684/pgl-major-antwerp-team-list-finalized", + "name": "PGL Major Antwerp team list finalized", + }, + Object { + "link": "/news/33653/heroic-acquire-partner-slot-in-blast-premier-circuit", + "name": "Heroic acquire partner slot in BLAST Premier circuit", + }, + Object { + "link": "/news/33651/apex-this-was-the-hardest-major-qualifier-i-ever-played", + "name": "apEX: \\"This was the hardest Major qualifier I ever played\\"", + }, + Object { + "link": "/news/33648/outsiders-qualify-for-pgl-major-navi-secure-final-legends-spot", + "name": "Outsiders qualify for PGL Major, NAVI secure final Legends spot", + }, + Object { + "link": "/news/33647/eternal-fire-and-vitality-qualify-for-pgl-major-og-and-mouz-miss-out", + "name": "Eternal Fire and Vitality qualify for PGL Major, OG and MOUZ miss out", + }, + Object { + "link": "/news/33645/vitality-to-face-mouz-in-final-swiss-round-for-eu-rmr-a", + "name": "Vitality to face MOUZ in final Swiss round for EU RMR A", + }, + Object { + "link": "/news/33644/faze-qualify-for-pgl-antwerp-outsiders-see-off-dignitas", + "name": "FaZe qualify for PGL Antwerp; Outsiders see off Dignitas", + }, + Object { + "link": "/news/33641/b1ad3-we-did-not-have-any-practice-at-all-after-esl-pro-league", + "name": "B1ad3: \\"We did not have any practice at all after ESL Pro League\\"", + }, + Object { + "link": "/news/33640/navi-qualify-for-major-fnatic-eliminated", + "name": "NAVI qualify for Major, fnatic eliminated", + }, + Object { + "link": "/news/33638/lisbon-to-host-blast-premier-spring-final", + "name": "Lisbon to host BLAST Premier Spring Final", + }, + Object { + "link": "/news/33634/video-ropz-mvp-of-esl-pro-league-season-15", + "name": "Video: ropz - MVP of ESL Pro League Season 15", + }, + Object { + "link": "/news/33632/cadian-navi-have-given-me-a-lot-of-nights-where-i-definitely-could-have-slept-way-better", + "name": "cadiaN: \\"[NAVI] have given me a lot of nights where I definitely could have slept way better\\"", + }, + Object { + "link": "/news/33635/round-4-matchups-determined-after-navi-faze-falter-on-day-two-of-eu-rmr-a", + "name": "Round 4 matchups determined after NAVI, FaZe falter on day two of EU RMR A", + }, + Object { + "link": "/news/33629/heroic-qualify-for-antwerp-major-unique-eliminate-quazar", + "name": "Heroic qualify for Antwerp Major, Unique eliminate QUAZAR", + }, + Object { + "link": "/news/33623/round-3-matchups-set-at-eu-rmr-as-big-beat-outsiders-in-largest-upset-so-far", + "name": "Round 3 matchups set at EU RMR as BIG beat Outsiders in largest upset so far", + }, + Object { + "link": "/news/33622/heroic-faze-navi-one-win-away-from-major-spot", + "name": "Heroic, FaZe, NAVI one win away from Major spot", + }, + Object { + "link": "/news/33621/flamez-nexa-is-really-good-at-calling-what-the-players-want-instead-of-what-looks-good-for-him", + "name": "flameZ: \\"nexa is really good at calling what the players want instead of what looks good for him\\"", + }, + Object { + "link": "/news/33620/vitality-take-on-faze-in-marquee-round-two-matchup", + "name": "Vitality take on FaZe in marquee round two matchup", + }, + Object { + "link": "/news/33617/wins-for-the-favourites-so-far-in-eu-rmr-round-one", + "name": "Wins for the favourites so far in EU RMR round one", + }, + Object { + "link": "/news/33610/when-do-counter-strike-players-peak", + "name": "When do Counter-Strike players peak?", + }, + Object { + "link": "/news/33514/opinion-should-we-be-worried-for-vitality", + "name": "Opinion: Should we be worried for Vitality?", + }, + Object { + "link": "/news/33600/fantasy-pgl-major-antwerp-europe-rmr-a-game-goes-live", + "name": "Fantasy: PGL Major Antwerp Europe RMR A game goes live", + }, + Object { + "link": "/news/33579/iem-dallas-invited-teams-announced", + "name": "IEM Dallas invited teams announced", + }, + Object { + "link": "/news/33582/faze-qualify-for-blast-global-final-following-epl-s15-victory", + "name": "FaZe qualify for BLAST Global Final following EPL S15 victory", + }, + Object { + "link": "/news/33580/faze-return-to-no-1-for-the-first-time-in-four-years", + "name": "FaZe return to No. 1 for the first time in four years", + }, + Object { + "link": "/news/33554/20-years-of-hltvorg", + "name": "20 years of HLTV.org", + }, + Object { + "link": "/news/33570/ropz-claims-esl-pro-league-s15-mvp", + "name": "ropz claims ESL Pro League S15 MVP", + }, + Object { + "link": "/news/33559/karrigan-i-think-the-group-stage-was-a-little-slap-in-the-face", + "name": "karrigan: \\"I think the group stage was a little slap in the face\\"", + }, + Object { + "link": "/news/33557/faze-sweep-navi-set-up-semi-final-against-furia", + "name": "FaZe sweep NAVI, set up semi-final against FURIA", + }, + Object { + "link": "/news/33556/furia-secure-epl-semi-finals-after-taking-down-astralis", + "name": "FURIA secure EPL semi-finals after taking down Astralis", + }, + Object { + "link": "/news/33541/faze-book-quarter-finals-ticket-after-defeating-players", + "name": "FaZe book quarter-finals ticket after defeating Players", + }, + Object { + "link": "/news/33535/team-ranking-march-2022", + "name": "Team Ranking: March 2022", + }, + Object { + "link": "/news/33524/esl-pro-league-s15-playoffs-fantasy-game-open-to-play", + "name": "ESL Pro League S15 Playoffs Fantasy game open to play", + }, + Object { + "link": "/news/33530/playoffs-bracket-set-at-esl-pro-league-s15", + "name": "Playoffs bracket set at ESL Pro League S15", + }, + Object { + "link": "/news/33529/navi-go-5-0-in-group-d-astralis-secure-final-epl-playoff-spot", + "name": "NAVI go 5-0 in Group D, Astralis secure final EPL playoff spot", + }, + Object { + "link": "/news/33525/astralis-face-off-against-complexity-for-last-playoffs-spot-at-epl", + "name": "Astralis face off against Complexity for last playoffs spot at EPL", + }, + Object { + "link": "/news/33522/navi-overcome-astralis-set-up-first-place-decider-against-heroic", + "name": "NAVI overcome Astralis, set up first place decider against Heroic", + }, + Object { + "link": "/news/33523/na-derby-goes-the-way-of-complexity", + "name": "NA derby goes the way of Complexity", + }, + Object { + "link": "/news/33521/heroic-secure-esl-pro-league-playoff-spot-ago-out-of-contention", + "name": "Heroic secure ESL Pro League playoff spot, AGO out of contention", + }, + Object { + "link": "/news/33520/boombl4-back-in-action-on-day-4-of-epl-group-d", + "name": "Boombl4 back in action on day 4 of EPL Group D", + }, + Object { + "link": "/news/33518/navi-secure-pro-league-playoff-berth-after-besting-complexity", + "name": "NAVI secure Pro League playoff berth after besting Complexity", + }, + Object { + "link": "/news/33516/heroic-defeat-evil-geniuses-to-remove-them-from-playoffs-contention", + "name": "Heroic defeat Evil Geniuses to remove them from playoffs contention", + }, + Object { + "link": "/news/33515/astralis-beat-ago-to-go-2-1-in-the-group", + "name": "Astralis beat AGO to go 2-1 in the group", + }, + Object { + "link": "/news/33512/navi-cruise-past-evil-geniuses-with-a-2-0-win", + "name": "NAVI cruise past Evil Geniuses with a 2-0 win", + }, + Object { + "link": "/news/33510/ago-defeat-complexity-to-earn-first-win-at-epl", + "name": "AGO defeat Complexity to earn first win at EPL", + }, + Object { + "link": "/news/33509/malek-to-miss-epl-group-stage", + "name": "maLeK to miss EPL group stage", + }, + Object { + "link": "/news/33507/heroic-secure-2-0-victory-over-complexity", + "name": "Heroic secure 2-0 victory over Complexity", + }, + Object { + "link": "/news/33506/navi-defeat-ago-in-esl-pro-league-group-d-opening-match-after-record-breaking-71-round-second-map", + "name": "NAVI defeat AGO in ESL Pro League Group D opening match after record-breaking 71 round second map", + }, + Object { + "link": "/news/33499/vod-hltv-confirmed-with-guest-elige-talking-liquids-new-lineup-and-north-america", + "name": "[VOD] HLTV Confirmed with guest EliGE: Talking Liquid's new lineup and North America", + }, + Object { + "link": "/news/33501/boombl4-to-miss-start-of-esl-pro-league", + "name": "Boombl4 to miss start of ESL Pro League", + }, + Object { + "link": "/news/33500/bulletpoints-esl-pro-league-s15-group-d", + "name": "Bulletpoints: ESL Pro League S15 Group D", + }, + Object { + "link": "/news/33498/navi-ceo-we-hope-that-we-are-going-to-keep-the-csgo-roster-and-that-the-russia-based-players-are-going-to-relocate", + "name": "NAVI CEO: \\"We hope that we are going to keep [the CS:GO] roster and that the Russia-based players are going to relocate\\"", + }, + Object { + "link": "/news/33495/movistar-riders-top-esl-pro-league-group-c-with-5-0-record", + "name": "Movistar Riders top ESL Pro League Group C with 5-0 record", + }, + Object { + "link": "/news/33480/fantasy-esl-pro-league-s15-group-d-game-goes-live", + "name": "Fantasy: ESL Pro League S15 Group D game goes live", + }, + Object { + "link": "/news/33440/is-the-modern-awper-really-too-passive", + "name": "Is the modern AWPer really too passive?", + }, + Object { + "link": "/news/33432/bulletpoints-esl-pro-league-s15-group-b", + "name": "Bulletpoints: ESL Pro League S15 Group B", + }, + Object { + "link": "/news/33427/all-52-teams-in-running-for-24-pgl-major-antwerp-spots-are-set", + "name": "All 52 teams in running for 24 PGL Major Antwerp spots are set", + }, + Object { + "link": "/news/33405/heroic-furia-godsent-invited-to-blast-premier-spring-showdown", + "name": "Heroic, FURIA, GODSENT invited to BLAST Premier Spring Showdown", + }, + Object { + "link": "/news/33394/ago-sign-mwlky", + "name": "AGO sign mwlky", + }, + Object { + "link": "/news/33389/pgl-major-europe-rmr-groups-confirmed", + "name": "PGL Major Europe RMR groups confirmed", + }, + Object { + "link": "/news/33383/pgl-major-antwerp-europe-rmr-team-list-set", + "name": "PGL Major Antwerp Europe RMR team list set", + }, + Object { + "link": "/news/33378/was-fazes-katowice-victory-the-best-fairy-tale-run-in-csgo", + "name": "Was FaZe's Katowice victory the best fairy-tale run in CS:GO?", + }, + Object { + "link": "/news/33376/europe-rmr-open-qualifier-4-day-one-comes-to-an-end-round-of-16-bracket-set", + "name": "Europe RMR Open Qualifier 4 day one comes to an end, Round of 16 bracket set", }, Object { "link": "/news/33373/saw-unique-big-sprout-and-forze-earn-spot-at-pgl-major-antwerp-europe-rmr", @@ -10240,48 +10632,48 @@ Object { "players": Array [ Object { "id": 7998, - "mapsPlayed": 1039, + "mapsPlayed": 1066, "name": "s1mple", - "timeOnTeam": "5 years6 months", + "timeOnTeam": "5 years9 months", "type": "Starter", }, Object { "id": 8918, - "mapsPlayed": 838, + "mapsPlayed": 865, "name": "electroNic", - "timeOnTeam": "4 years3 months", + "timeOnTeam": "4 years6 months", "type": "Starter", }, Object { "id": 11840, - "mapsPlayed": 503, + "mapsPlayed": 524, "name": "Boombl4", - "timeOnTeam": "2 years8 months", + "timeOnTeam": "2 years10 months", "type": "Starter", }, Object { "id": 16947, - "mapsPlayed": 431, + "mapsPlayed": 458, "name": "Perfecto", - "timeOnTeam": "2 years1 month", + "timeOnTeam": "2 years3 months", "type": "Starter", }, Object { "id": 18987, - "mapsPlayed": 172, + "mapsPlayed": 210, "name": "b1t", - "timeOnTeam": "1 year1 month", + "timeOnTeam": "1 year3 months", "type": "Starter", }, Object { "id": 472, - "mapsPlayed": 475, + "mapsPlayed": 502, "name": "B1ad3", - "timeOnTeam": "2 years5 months", + "timeOnTeam": "2 years8 months", "type": "Coach", }, ], - "rank": 1, + "rank": 2, "rankingDevelopment": Array [ 6, 10, @@ -10427,6 +10819,17 @@ Object { 1, 1, 1, + 1, + 1, + 1, + 1, + 1, + 2, + 2, + 2, + 2, + 2, + 2, ], "twitter": "https://www.twitter.com/natusvincere", } diff --git a/__tests__/__snapshots__/getTeamStats.test.ts.snap b/__tests__/__snapshots__/getTeamStats.test.ts.snap index 4f088f1c..b77b4c7b 100644 --- a/__tests__/__snapshots__/getTeamStats.test.ts.snap +++ b/__tests__/__snapshots__/getTeamStats.test.ts.snap @@ -4,27 +4,25 @@ exports[`getTeamStats 1`] = ` Object { "currentLineup": Array [ Object { - "id": 8917, - "name": "niki1", - }, - Object { - "id": 14380, - "name": "Patrick", - }, - Object { - "id": 16412, - "name": "rafftu", + "id": 3183, + "name": "spyleadeR", }, + ], + "events": Array [ Object { - "id": 20114, - "name": "shaiK", + "event": Object { + "id": 6464, + "name": "TWR Eastern European Masters Spring 2022 Last Chance Qualifier", + }, + "place": "3-4th", }, Object { - "id": 21345, - "name": "hybrid", + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "place": "7-8th", }, - ], - "events": Array [ Object { "event": Object { "id": 6386, @@ -629,10 +627,42 @@ Object { }, ], "historicPlayers": Array [ + Object { + "id": 21345, + "name": "hybrid", + }, + Object { + "id": 8917, + "name": "niki1", + }, + Object { + "id": 14380, + "name": "Patrick", + }, + Object { + "id": 20114, + "name": "shaiK", + }, Object { "id": 10697, "name": "blocker", }, + Object { + "id": 15384, + "name": "doublemagic", + }, + Object { + "id": 16410, + "name": "Duplicate", + }, + Object { + "id": 15385, + "name": "KalubeR", + }, + Object { + "id": 13464, + "name": "mar", + }, Object { "id": 20388, "name": "milky", @@ -641,6 +671,10 @@ Object { "id": 17146, "name": "numb", }, + Object { + "id": 16412, + "name": "rafftu", + }, Object { "id": 17145, "name": "Rainwaker", @@ -653,22 +687,6 @@ Object { "id": 13992, "name": "Zix", }, - Object { - "id": 15384, - "name": "doublemagic", - }, - Object { - "id": 13464, - "name": "mar", - }, - Object { - "id": 16410, - "name": "Duplicate", - }, - Object { - "id": 15385, - "name": "KalubeR", - }, Object { "id": 20097, "name": "h4rn", @@ -678,11 +696,11 @@ Object { "mapStats": Object { "de_ancient": Object { "draws": 0, - "losses": 2, - "roundWinPAfterFirstDeath": 26, - "roundWinPAfterFirstKill": 70.9, - "totalRounds": 105, - "winRate": 50, + "losses": 3, + "roundWinPAfterFirstDeath": 26.9, + "roundWinPAfterFirstKill": 69.2, + "totalRounds": 132, + "winRate": 40, "wins": 2, }, "de_cache": Object { @@ -696,47 +714,47 @@ Object { }, "de_dust2": Object { "draws": 0, - "losses": 41, - "roundWinPAfterFirstDeath": 25, + "losses": 42, + "roundWinPAfterFirstDeath": 24.9, "roundWinPAfterFirstKill": 71.7, - "totalRounds": 2009, - "winRate": 44.6, + "totalRounds": 2044, + "winRate": 44, "wins": 33, }, "de_inferno": Object { "draws": 0, - "losses": 58, + "losses": 60, "roundWinPAfterFirstDeath": 27.9, - "roundWinPAfterFirstKill": 70.5, - "totalRounds": 2660, - "winRate": 43.1, + "roundWinPAfterFirstKill": 70.4, + "totalRounds": 2711, + "winRate": 42.3, "wins": 44, }, "de_mirage": Object { "draws": 0, "losses": 42, - "roundWinPAfterFirstDeath": 27.1, - "roundWinPAfterFirstKill": 70.5, - "totalRounds": 2003, - "winRate": 43.2, - "wins": 32, + "roundWinPAfterFirstDeath": 27.2, + "roundWinPAfterFirstKill": 70.7, + "totalRounds": 2062, + "winRate": 44.7, + "wins": 34, }, "de_nuke": Object { "draws": 0, "losses": 10, - "roundWinPAfterFirstDeath": 18.3, - "roundWinPAfterFirstKill": 67.8, - "totalRounds": 357, - "winRate": 28.6, - "wins": 4, + "roundWinPAfterFirstDeath": 19.4, + "roundWinPAfterFirstKill": 69, + "totalRounds": 385, + "winRate": 33.3, + "wins": 5, }, "de_overpass": Object { "draws": 0, - "losses": 39, + "losses": 40, "roundWinPAfterFirstDeath": 28, "roundWinPAfterFirstKill": 71.9, - "totalRounds": 2244, - "winRate": 54.7, + "totalRounds": 2274, + "winRate": 54, "wins": 47, }, "de_train": Object { @@ -759,6 +777,174 @@ Object { }, }, "matches": Array [ + Object { + "date": 1647295200000, + "event": Object { + "id": 6464, + "name": "TWR Eastern European Masters Spring 2022 Last Chance Qualifier", + }, + "map": "de_inferno", + "mapStatsId": 135413, + "result": Object { + "team1": 6, + "team2": 16, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 11518, + "name": "Bad News Eagles", + }, + }, + Object { + "date": 1647295200000, + "event": Object { + "id": 6464, + "name": "TWR Eastern European Masters Spring 2022 Last Chance Qualifier", + }, + "map": "de_ancient", + "mapStatsId": 135404, + "result": Object { + "team1": 11, + "team2": 16, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 11518, + "name": "Bad News Eagles", + }, + }, + Object { + "date": 1647295200000, + "event": Object { + "id": 6464, + "name": "TWR Eastern European Masters Spring 2022 Last Chance Qualifier", + }, + "map": "de_nuke", + "mapStatsId": 135399, + "result": Object { + "team1": 16, + "team2": 12, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 11518, + "name": "Bad News Eagles", + }, + }, + Object { + "date": 1646517600000, + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "map": "de_dust2", + "mapStatsId": 134853, + "result": Object { + "team1": 16, + "team2": 19, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 10973, + "name": "Anonymo", + }, + }, + Object { + "date": 1646517600000, + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "map": "de_overpass", + "mapStatsId": 134830, + "result": Object { + "team1": 14, + "team2": 16, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 4991, + "name": "fnatic", + }, + }, + Object { + "date": 1646517600000, + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "map": "de_mirage", + "mapStatsId": 134819, + "result": Object { + "team1": 16, + "team2": 14, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 4991, + "name": "fnatic", + }, + }, + Object { + "date": 1646517600000, + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "map": "de_inferno", + "mapStatsId": 134811, + "result": Object { + "team1": 13, + "team2": 16, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 4991, + "name": "fnatic", + }, + }, + Object { + "date": 1646517600000, + "event": Object { + "id": 6401, + "name": "PGL Major Antwerp 2022 Europe RMR Open Qualifier 4", + }, + "map": "de_mirage", + "mapStatsId": 134804, + "result": Object { + "team1": 16, + "team2": 13, + }, + "team1": Object { + "id": 9863, + "name": "FATE", + }, + "team2": Object { + "id": 9648, + "name": "KOVA", + }, + }, Object { "date": 1645308000000, "event": Object { @@ -11180,12 +11366,12 @@ Object { "overview": Object { "draws": 0, "kdRatio": 0.97, - "losses": 261, - "mapsPlayed": 496, - "roundsPlayed": 13173, - "totalDeaths": 45092, - "totalKills": 43621, - "wins": 235, + "losses": 266, + "mapsPlayed": 504, + "roundsPlayed": 13403, + "totalDeaths": 45943, + "totalKills": 44367, + "wins": 238, }, "standins": Array [ Object { @@ -11204,10 +11390,6 @@ Object { "id": 2799, "name": "bubble", }, - Object { - "id": 3183, - "name": "spyleadeR", - }, Object { "id": 11343, "name": "SHiPZ",