diff --git a/integration-tests/2016-season/__snapshots__/integration.test.js.snap b/integration-tests/2016-season/__snapshots__/integration.test.js.snap index bc0729a..e145451 100644 --- a/integration-tests/2016-season/__snapshots__/integration.test.js.snap +++ b/integration-tests/2016-season/__snapshots__/integration.test.js.snap @@ -36,3 +36,3498 @@ exports[`2016 season integration tests getHistoricalScoreboardForWeek returns a }, ] `; + +exports[`2016 season integration tests getHistoricalTeamsAtWeek returns a populated array of Teams 1`] = ` +[ + Team { + "abbreviation": "MG", + "awayLosses": 0, + "awayTies": 0, + "awayWins": 6, + "divisionLosses": 1, + "divisionTies": 0, + "divisionWins": 5, + "finalStandingsPosition": 2, + "homeLosses": 3, + "homeTies": 0, + "homeWins": 4, + "id": 1, + "leagueId": "336358", + "logoURL": "http://img.bleacherreport.net/img/images/photos/003/604/203/hi-res-2468e7082e3abd26ae4985047d27231e_crop_north.jpg?w=630&h=420&q=75", + "losses": 3, + "name": "#rawlsdeep _", + "ownerName": "Michael Gronski", + "playoffSeed": 1, + "regularSeasonPointsAgainst": 1159.8399999999997, + "regularSeasonPointsFor": 1348.2800000000002, + "roster": [ + Player { + "auctionValueAverage": 46.60390585878818, + "averageDraftPosition": 16.5, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Le'Veon", + "fullName": "Le'Veon Bell", + "id": 15825, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bell", + "percentChange": -0.40743074658, + "percentOwned": 98.919602437975, + "percentStarted": 10.358868010419, + "proTeam": "Pittsburgh Steelers", + "proTeamAbbreviation": "PIT", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 36.074611917876815, + "averageDraftPosition": 24.6, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Mark", + "fullName": "Mark Ingram", + "id": 13981, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ingram", + "percentChange": 0.091800876048, + "percentOwned": 97.738915524132, + "percentStarted": 83.803252019803, + "proTeam": "New Orleans Saints", + "proTeamAbbreviation": "NO", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 33.19879819729594, + "averageDraftPosition": 27.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Alshon", + "fullName": "Alshon Jeffery", + "id": 14912, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Jeffery", + "percentChange": 0.819639199752, + "percentOwned": 86.489004062193, + "percentStarted": 56.310407620114, + "proTeam": "Philadelphia Eagles", + "proTeamAbbreviation": "PHI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 24.74611917876815, + "averageDraftPosition": 39, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Demaryius", + "fullName": "Demaryius Thomas", + "id": 13216, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Thomas", + "percentChange": -0.054668435944, + "percentOwned": 98.111000422628, + "percentStarted": 69.794119422809, + "proTeam": "Denver Broncos", + "proTeamAbbreviation": "DEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 13.687531296945417, + "averageDraftPosition": 52.2, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "DeMarco", + "fullName": "DeMarco Murray", + "id": 14005, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Murray", + "percentChange": -0.030435583082, + "percentOwned": 99.376666469159, + "percentStarted": 94.186170527937, + "proTeam": "Tennessee Titans", + "proTeamAbbreviation": "TEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 8.540811216825238, + "averageDraftPosition": 56, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Delanie", + "fullName": "Delanie Walker", + "id": 9761, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Walker", + "percentChange": -0.047481512654, + "percentOwned": 97.476349689533, + "percentStarted": 68.673230058528, + "proTeam": "Tennessee Titans", + "proTeamAbbreviation": "TEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 12.796482412060302, + "averageDraftPosition": 65.9, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Tom", + "fullName": "Tom Brady", + "id": 2330, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Brady", + "percentChange": 0.059999540574, + "percentOwned": 99.444843538978, + "percentStarted": 75.286342346484, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.5037383177570094, + "averageDraftPosition": 129, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Vikings", + "fullName": "Vikings D/ST", + "id": -16016, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.556820095526, + "percentOwned": 85.339857628089, + "percentStarted": 52.069858539061, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 29.5728592889334, + "averageDraftPosition": 31.2, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Amari", + "fullName": "Amari Cooper", + "id": 2976499, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Cooper", + "percentChange": -0.117230766977, + "percentOwned": 98.545315661811, + "percentStarted": 35.819005373822, + "proTeam": "Las Vegas Raiders", + "proTeamAbbreviation": "LV", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 21.442163244867302, + "averageDraftPosition": 45.1, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Thomas", + "fullName": "Thomas Rawls", + "id": 2576237, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Rawls", + "percentChange": 0.682945140482, + "percentOwned": 93.683557760453, + "percentStarted": 66.164068036853, + "proTeam": "Seattle Seahawks", + "proTeamAbbreviation": "SEA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 4.517170681701692, + "averageDraftPosition": 79.7, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Seahawks", + "fullName": "Seahawks D/ST", + "id": -16026, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.142111535298, + "percentOwned": 98.089224573283, + "percentStarted": 89.960806235429, + "proTeam": "Seattle Seahawks", + "proTeamAbbreviation": "SEA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.1875, + "averageDraftPosition": 152.3, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Matt", + "fullName": "Matt Prater", + "id": 11122, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Prater", + "percentChange": 0.404559334378, + "percentOwned": 76.882536297268, + "percentStarted": 66.116397342301, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 4.704168759417378, + "averageDraftPosition": 98.4, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "DeAngelo", + "fullName": "DeAngelo Williams", + "id": 9613, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Williams", + "percentChange": 11.795843075571, + "percentOwned": 75.433233679323, + "percentStarted": 57.615320591056, + "proTeam": "Pittsburgh Steelers", + "proTeamAbbreviation": "PIT", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.277099784637473, + "averageDraftPosition": 133.1, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Steve", + "fullName": "Steve Smith Sr.", + "id": 2622, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Smith Sr.", + "percentChange": 0.386838923074, + "percentOwned": 71.389039842118, + "percentStarted": 45.623945313617, + "proTeam": "Baltimore Ravens", + "proTeamAbbreviation": "BAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.592283628779979, + "averageDraftPosition": 135.1, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Mason", + "fullName": "Mason Crosby", + "id": 10636, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Crosby", + "percentChange": 1.002337681876, + "percentOwned": 63.900910183754, + "percentStarted": 48.64416967199, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 58.43164747120681, + "averageDraftPosition": 4.2, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Adrian", + "fullName": "Adrian Peterson", + "id": 10452, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Peterson", + "percentChange": -4.372283155937, + "percentOwned": 54.723081493909, + "percentStarted": 1.392893968786, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1726.44, + "winningPercentage": 76.92, + "wins": 10, + }, + Team { + "abbreviation": "GRON", + "awayLosses": 1, + "awayTies": 0, + "awayWins": 5, + "divisionLosses": 1, + "divisionTies": 0, + "divisionWins": 5, + "finalStandingsPosition": 1, + "homeLosses": 5, + "homeTies": 0, + "homeWins": 2, + "id": 2, + "leagueId": "336358", + "logoURL": "http://3219a2.medialib.glogster.com/media/f8/f81cfe4e18dba8da78f1e654f311d7852eedf937770ef0670f656835288409ca/prestige-png.png", + "losses": 6, + "name": "Prestige Worldwide", + "ownerName": "Bryan Gronski", + "playoffSeed": 2, + "regularSeasonPointsAgainst": 1238.28, + "regularSeasonPointsFor": 1316.84, + "roster": [ + Player { + "auctionValueAverage": 62.44667000500751, + "averageDraftPosition": 1.4, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Antonio", + "fullName": "Antonio Brown", + "id": 13934, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Brown", + "percentChange": -0.286144188566, + "percentOwned": 99.264731384177, + "percentStarted": 10.470063237725, + "proTeam": "Pittsburgh Steelers", + "proTeamAbbreviation": "PIT", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 44.455182774161244, + "averageDraftPosition": 12.7, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Devonta", + "fullName": "Devonta Freeman", + "id": 16944, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Freeman", + "percentChange": -0.001692064113, + "percentOwned": 99.921020749306, + "percentStarted": 98.576839909825, + "proTeam": "Atlanta Falcons", + "proTeamAbbreviation": "ATL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 36.371557336004, + "averageDraftPosition": 25, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "LeSean", + "fullName": "LeSean McCoy", + "id": 12514, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "McCoy", + "percentChange": -0.023859153261, + "percentOwned": 99.822053743247, + "percentStarted": 98.170109665901, + "proTeam": "Buffalo Bills", + "proTeamAbbreviation": "BUF", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 29.960440660991488, + "averageDraftPosition": 31.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Sammy", + "fullName": "Sammy Watkins", + "id": 16725, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Watkins", + "percentChange": 1.33838685303, + "percentOwned": 78.551011089775, + "percentStarted": 37.214233441958, + "proTeam": "Buffalo Bills", + "proTeamAbbreviation": "BUF", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 15.538808212318477, + "averageDraftPosition": 55.6, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Latavius", + "fullName": "Latavius Murray", + "id": 15920, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Murray", + "percentChange": 0.07517361492, + "percentOwned": 96.64484777673, + "percentStarted": 69.717991954007, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 3.5600200904068307, + "averageDraftPosition": 89.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Michael", + "fullName": "Michael Crabtree", + "id": 12563, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Crabtree", + "percentChange": -0.123428043249, + "percentOwned": 94.106306428619, + "percentStarted": 36.329509198289, + "proTeam": "Las Vegas Raiders", + "proTeamAbbreviation": "LV", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.8896982310093653, + "averageDraftPosition": 119.4, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Adam", + "fullName": "Adam Vinatieri", + "id": 1097, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Vinatieri", + "percentChange": 0.131215703601, + "percentOwned": 92.632795242141, + "percentStarted": 83.227187765505, + "proTeam": "Indianapolis Colts", + "proTeamAbbreviation": "IND", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.985035783994795, + "averageDraftPosition": 103.8, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Matthew", + "fullName": "Matthew Stafford", + "id": 12483, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Stafford", + "percentChange": 0.727195371151, + "percentOwned": 87.238397442108, + "percentStarted": 49.657252204243, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 3.0671256454388987, + "averageDraftPosition": 95, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Jameis", + "fullName": "Jameis Winston", + "id": 2969939, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Winston", + "percentChange": 0.797954718887, + "percentOwned": 76.975323178364, + "percentStarted": 44.289999132407, + "proTeam": "Tampa Bay Buccaneers", + "proTeamAbbreviation": "TB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Cameron", + "fullName": "Cameron Meredith", + "id": 2520698, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Meredith", + "percentChange": 4.65377356558, + "percentOwned": 51.015556359501, + "percentStarted": 31.652798594242, + "proTeam": "Chicago Bears", + "proTeamAbbreviation": "CHI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jacquizz", + "fullName": "Jacquizz Rodgers", + "id": 14193, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Rodgers", + "percentChange": 8.209624164638, + "percentOwned": 74.915102831269, + "percentStarted": 62.80583437892, + "proTeam": "Tampa Bay Buccaneers", + "proTeamAbbreviation": "TB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.4298921417565484, + "averageDraftPosition": 120.3, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jared", + "fullName": "Jared Cook", + "id": 12537, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Cook", + "percentChange": 6.771913489462, + "percentOwned": 35.486089223804, + "percentStarted": 25.372911950946, + "proTeam": "Las Vegas Raiders", + "proTeamAbbreviation": "LV", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Colts", + "fullName": "Colts D/ST", + "id": -16011, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.431869392604, + "percentOwned": 10.11357299659, + "percentStarted": 7.242131417156, + "proTeam": "Indianapolis Colts", + "proTeamAbbreviation": "IND", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.13922942206655, + "averageDraftPosition": 135.5, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Chris", + "fullName": "Chris Hogan", + "id": 14402, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hogan", + "percentChange": 3.355097210213, + "percentOwned": 23.614802698834, + "percentStarted": 10.528786811755, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 17.352028042063093, + "averageDraftPosition": 49.2, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jarvis", + "fullName": "Jarvis Landry", + "id": 16790, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Landry", + "percentChange": 0.051950895136, + "percentOwned": 93.171088605645, + "percentStarted": 44.38676883977, + "proTeam": "Miami Dolphins", + "proTeamAbbreviation": "MIA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.7975334018499487, + "averageDraftPosition": 120, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Texans", + "fullName": "Texans D/ST", + "id": -16034, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 1.55626172925, + "percentOwned": 60.191924306192, + "percentStarted": 40.601563241669, + "proTeam": "Houston Texans", + "proTeamAbbreviation": "HOU", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1730.32, + "winningPercentage": 53.85, + "wins": 7, + }, + Team { + "abbreviation": "OG", + "awayLosses": 3, + "awayTies": 0, + "awayWins": 4, + "divisionLosses": 5, + "divisionTies": 0, + "divisionWins": 1, + "finalStandingsPosition": 7, + "homeLosses": 5, + "homeTies": 0, + "homeWins": 1, + "id": 3, + "leagueId": "336358", + "logoURL": "https://media.giphy.com/media/14dgrVjSkgtTHy/giphy.gif", + "losses": 8, + "name": "ganOG gANUNOBY", + "ownerName": "scottie munson", + "playoffSeed": 6, + "regularSeasonPointsAgainst": 1405.46, + "regularSeasonPointsFor": 1258.04, + "roster": [ + Player { + "auctionValueAverage": 54.57085628442664, + "averageDraftPosition": 5.7, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Todd", + "fullName": "Todd Gurley", + "id": 2977644, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Gurley", + "percentChange": -0.024194508019, + "percentOwned": 98.881347999063, + "percentStarted": 69.844761681878, + "proTeam": "Los Angeles Rams", + "proTeamAbbreviation": "LAR", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 42.29243865798698, + "averageDraftPosition": 18.2, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Dez", + "fullName": "Dez Bryant", + "id": 13215, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bryant", + "percentChange": 0.031023907059, + "percentOwned": 99.435633104797, + "percentStarted": 30.526151599157, + "proTeam": "Dallas Cowboys", + "proTeamAbbreviation": "DAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 37.52128192288433, + "averageDraftPosition": 21.8, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Doug", + "fullName": "Doug Martin", + "id": 14885, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Martin", + "percentChange": -9.854256187553, + "percentOwned": 71.841175800387, + "percentStarted": 3.174205309331, + "proTeam": "Tampa Bay Buccaneers", + "proTeamAbbreviation": "TB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 28.073610415623435, + "averageDraftPosition": 29.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Brandin", + "fullName": "Brandin Cooks", + "id": 16731, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Cooks", + "percentChange": -0.001084335997, + "percentOwned": 98.50934868188, + "percentStarted": 84.080510445667, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 28.707035175879398, + "averageDraftPosition": 19.8, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Aaron", + "fullName": "Aaron Rodgers", + "id": 8439, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Rodgers", + "percentChange": -0.000947668241, + "percentOwned": 99.914130331075, + "percentStarted": 95.768851572687, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 8.414121181772659, + "averageDraftPosition": 53.2, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Larry", + "fullName": "Larry Fitzgerald", + "id": 5528, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Fitzgerald", + "percentChange": -0.036843992085, + "percentOwned": 97.903409422616, + "percentStarted": 68.375999766477, + "proTeam": "Arizona Cardinals", + "proTeamAbbreviation": "ARI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 5.59665991902834, + "averageDraftPosition": 108.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Josh", + "fullName": "Josh Gordon", + "id": 15705, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Gordon", + "percentChange": 0.421054988976, + "percentOwned": 2.899934986234, + "percentStarted": 0.208686160094, + "proTeam": "Cleveland Browns", + "proTeamAbbreviation": "CLE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 4.2906626506024095, + "averageDraftPosition": 86.6, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Marvin", + "fullName": "Marvin Jones", + "id": 15072, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Jones", + "percentChange": -0.163538104979, + "percentOwned": 75.103273362682, + "percentStarted": 21.531753908271, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4254522769806612, + "averageDraftPosition": 134.3, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Tevin", + "fullName": "Tevin Coleman", + "id": 2979477, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Coleman", + "percentChange": 1.389356622677, + "percentOwned": 85.100790866385, + "percentStarted": 65.848843432241, + "proTeam": "Atlanta Falcons", + "proTeamAbbreviation": "ATL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 134.1, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Terrelle", + "fullName": "Terrelle Pryor Sr.", + "id": 14851, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Pryor Sr.", + "percentChange": 0.165188790661, + "percentOwned": 83.40267694823, + "percentStarted": 24.007125513976, + "proTeam": "Washington Commanders", + "proTeamAbbreviation": "WSH", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.6214622641509435, + "averageDraftPosition": 118.8, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jimmy", + "fullName": "Jimmy Graham", + "id": 13232, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Graham", + "percentChange": 0.208036164952, + "percentOwned": 96.967102575724, + "percentStarted": 78.773075481094, + "proTeam": "Seattle Seahawks", + "proTeamAbbreviation": "SEA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.5782137325761485, + "averageDraftPosition": 112.4, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Steven", + "fullName": "Steven Hauschka", + "id": 11923, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hauschka", + "percentChange": 0.446536027001, + "percentOwned": 81.826896100252, + "percentStarted": 67.799806727142, + "proTeam": "Buffalo Bills", + "proTeamAbbreviation": "BUF", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.346528228423102, + "averageDraftPosition": 137.8, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Devontae", + "fullName": "Devontae Booker", + "id": 3122866, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Booker", + "percentChange": -0.017434049661, + "percentOwned": 70.744016535323, + "percentStarted": 23.448900444788, + "proTeam": "Denver Broncos", + "proTeamAbbreviation": "DEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 27.060590886329493, + "averageDraftPosition": 34, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jonathan", + "fullName": "Jonathan Stewart", + "id": 11247, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Stewart", + "percentChange": 0.304345897445, + "percentOwned": 95.080752269208, + "percentStarted": 57.839317292946, + "proTeam": "Carolina Panthers", + "proTeamAbbreviation": "CAR", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jordan", + "fullName": "Jordan Howard", + "id": 3060022, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Howard", + "percentChange": 0.188564978798, + "percentOwned": 96.297354353889, + "percentStarted": 92.22478308026, + "proTeam": "Chicago Bears", + "proTeamAbbreviation": "CHI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.3918918918918919, + "averageDraftPosition": 119.7, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Steelers", + "fullName": "Steelers D/ST", + "id": -16023, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 3.721868462903, + "percentOwned": 70.29037819658, + "percentStarted": 60.161962919239, + "proTeam": "Pittsburgh Steelers", + "proTeamAbbreviation": "PIT", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1621.94, + "winningPercentage": 38.46, + "wins": 5, + }, + Team { + "abbreviation": "REES", + "awayLosses": 0, + "awayTies": 0, + "awayWins": 7, + "divisionLosses": 2, + "divisionTies": 0, + "divisionWins": 4, + "finalStandingsPosition": 3, + "homeLosses": 4, + "homeTies": 0, + "homeWins": 2, + "id": 4, + "leagueId": "336358", + "losses": 4, + "name": "Johnson N Company", + "ownerName": "Brian Reese", + "playoffSeed": 3, + "regularSeasonPointsAgainst": 1217.7, + "regularSeasonPointsFor": 1439.4200000000003, + "roster": [ + Player { + "auctionValueAverage": 49.769153730595896, + "averageDraftPosition": 10, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "David", + "fullName": "David Johnson", + "id": 2508176, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Johnson", + "percentChange": -0.006422894916, + "percentOwned": 99.961221522055, + "percentStarted": 98.795586096775, + "proTeam": "Arizona Cardinals", + "proTeamAbbreviation": "ARI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 31.956281407035174, + "averageDraftPosition": 16, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Cam", + "fullName": "Cam Newton", + "id": 13994, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Newton", + "percentChange": -0.069740308821, + "percentOwned": 97.120142024622, + "percentStarted": 42.107985025664, + "proTeam": "Carolina Panthers", + "proTeamAbbreviation": "CAR", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 17.728092138207312, + "averageDraftPosition": 41.1, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Greg", + "fullName": "Greg Olsen", + "id": 10475, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Olsen", + "percentChange": -0.053548286808, + "percentOwned": 99.552243518898, + "percentStarted": 85.222773058827, + "proTeam": "Carolina Panthers", + "proTeamAbbreviation": "CAR", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 8.630946419629444, + "averageDraftPosition": 68.7, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Melvin", + "fullName": "Melvin Gordon", + "id": 2576434, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Gordon", + "percentChange": -2.321952374381, + "percentOwned": 91.053380193712, + "percentStarted": 3.406910149988, + "proTeam": "Los Angeles Chargers", + "proTeamAbbreviation": "LAC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.4224987039917054, + "averageDraftPosition": 106.8, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "LeGarrette", + "fullName": "LeGarrette Blount", + "id": 13213, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Blount", + "percentChange": 0.028656138595, + "percentOwned": 97.927857876336, + "percentStarted": 87.764211476022, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.2925977653631284, + "averageDraftPosition": 135.1, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Patriots", + "fullName": "Patriots D/ST", + "id": -16017, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.244467814411, + "percentOwned": 92.04029170802, + "percentStarted": 75.362631536768, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Matt", + "fullName": "Matt Bryant", + "id": 4333, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bryant", + "percentChange": 0.522730315961, + "percentOwned": 92.034989760296, + "percentStarted": 89.47035863608, + "proTeam": "Atlanta Falcons", + "proTeamAbbreviation": "ATL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 38.28592889334001, + "averageDraftPosition": 20.8, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jordy", + "fullName": "Jordy Nelson", + "id": 11270, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Nelson", + "percentChange": 0.001279537296, + "percentOwned": 99.904847787555, + "percentStarted": 99.101340215802, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 40.98047070605909, + "averageDraftPosition": 17.8, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Allen", + "fullName": "Allen Robinson", + "id": 16799, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Robinson", + "percentChange": 0.436401320248, + "percentOwned": 94.446759580805, + "percentStarted": 65.441187819295, + "proTeam": "Jacksonville Jaguars", + "proTeamAbbreviation": "JAX", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 7.181271907861793, + "averageDraftPosition": 67.6, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Travis", + "fullName": "Travis Kelce", + "id": 15847, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Kelce", + "percentChange": 0.066618268535, + "percentOwned": 98.798233942179, + "percentStarted": 95.741502358775, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Davante", + "fullName": "Davante Adams", + "id": 16800, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Adams", + "percentChange": 0.771481450818, + "percentOwned": 91.171701675171, + "percentStarted": 73.691946589254, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 16.193289934902353, + "averageDraftPosition": 46, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Doug", + "fullName": "Doug Baldwin", + "id": 14221, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Baldwin", + "percentChange": 0.025563079316, + "percentOwned": 96.893161299755, + "percentStarted": 83.594429620965, + "proTeam": "Seattle Seahawks", + "proTeamAbbreviation": "SEA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Tyreek", + "fullName": "Tyreek Hill", + "id": 3116406, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hill", + "percentChange": 1.93389446757, + "percentOwned": 79.359650011823, + "percentStarted": 59.780074997466, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Dontrelle", + "fullName": "Dontrelle Inman", + "id": 14269, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Inman", + "percentChange": -0.046275308548, + "percentOwned": 43.522325270102, + "percentStarted": 19.493976479586, + "proTeam": "Los Angeles Chargers", + "proTeamAbbreviation": "LAC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 5.12393376818866, + "averageDraftPosition": 80.1, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "DeSean", + "fullName": "DeSean Jackson", + "id": 11283, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Jackson", + "percentChange": 1.062982593492, + "percentOwned": 85.049689831942, + "percentStarted": 65.864029597096, + "proTeam": "Tampa Bay Buccaneers", + "proTeamAbbreviation": "TB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 5.99798893916541, + "averageDraftPosition": 91.4, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Blake", + "fullName": "Blake Bortles", + "id": 16724, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bortles", + "percentChange": 2.507882083347, + "percentOwned": 63.379696587377, + "percentStarted": 36.649536880327, + "proTeam": "Jacksonville Jaguars", + "proTeamAbbreviation": "JAX", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1870.18, + "winningPercentage": 69.23, + "wins": 9, + }, + Team { + "abbreviation": "SHAT", + "awayLosses": 4, + "awayTies": 0, + "awayWins": 2, + "divisionLosses": 4, + "divisionTies": 0, + "divisionWins": 2, + "finalStandingsPosition": 8, + "homeLosses": 4, + "homeTies": 0, + "homeWins": 3, + "id": 5, + "leagueId": "336358", + "logoURL": "http://i1.kym-cdn.com/photos/images/original/001/150/199/72a.png", + "losses": 8, + "name": "William Shatnerface", + "ownerName": "Chris Martin", + "playoffSeed": 7, + "regularSeasonPointsAgainst": 1327.2800000000002, + "regularSeasonPointsFor": 1252.16, + "roster": [ + Player { + "auctionValueAverage": 57.862293440160244, + "averageDraftPosition": 5.5, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Julio", + "fullName": "Julio Jones", + "id": 13982, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Jones", + "percentChange": -0.011227634528, + "percentOwned": 99.842105970409, + "percentStarted": 96.068102718464, + "proTeam": "Atlanta Falcons", + "proTeamAbbreviation": "ATL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 25.361041562343516, + "averageDraftPosition": 34.3, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jordan", + "fullName": "Jordan Reed", + "id": 15860, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Reed", + "percentChange": 0.531211590075, + "percentOwned": 95.67737919228, + "percentStarted": 42.728840816538, + "proTeam": "Washington Commanders", + "proTeamAbbreviation": "WSH", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 19.56634952428643, + "averageDraftPosition": 42.6, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Julian", + "fullName": "Julian Edelman", + "id": 12649, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Edelman", + "percentChange": 0.134028931823, + "percentOwned": 97.732731504547, + "percentStarted": 85.797038942883, + "proTeam": "New England Patriots", + "proTeamAbbreviation": "NE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4400212314225054, + "averageDraftPosition": 112.9, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Theo", + "fullName": "Theo Riddick", + "id": 15994, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Riddick", + "percentChange": -6.701836484544, + "percentOwned": 67.827739729565, + "percentStarted": 0.968938196618, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.5106382978723403, + "averageDraftPosition": 112.1, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Spencer", + "fullName": "Spencer Ware", + "id": 16020, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ware", + "percentChange": -0.291190077872, + "percentOwned": 96.002782368291, + "percentStarted": 24.57788194429, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.5825039287585123, + "averageDraftPosition": 112.8, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Dan", + "fullName": "Dan Bailey", + "id": 14322, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bailey", + "percentChange": 0.089178430897, + "percentOwned": 92.224712272571, + "percentStarted": 75.078056747825, + "proTeam": "Dallas Cowboys", + "proTeamAbbreviation": "DAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 50.56985478217326, + "averageDraftPosition": 9.3, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "DeAndre", + "fullName": "DeAndre Hopkins", + "id": 15795, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hopkins", + "percentChange": 0.025848073109, + "percentOwned": 96.648395856381, + "percentStarted": 54.602065104428, + "proTeam": "Houston Texans", + "proTeamAbbreviation": "HOU", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.32752434648898, + "averageDraftPosition": 105.7, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Antonio", + "fullName": "Antonio Gates", + "id": 5362, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Gates", + "percentChange": 0.493674442697, + "percentOwned": 90.24141962996, + "percentStarted": 68.641584703212, + "proTeam": "Los Angeles Chargers", + "proTeamAbbreviation": "LAC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Tyrell", + "fullName": "Tyrell Williams", + "id": 2587819, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Williams", + "percentChange": 0.418764763468, + "percentOwned": 85.383603813622, + "percentStarted": 57.431981430008, + "proTeam": "Los Angeles Chargers", + "proTeamAbbreviation": "LAC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Robert", + "fullName": "Robert Kelley", + "id": 2575408, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Kelley", + "percentChange": 0.72321366088, + "percentOwned": 89.769120611249, + "percentStarted": 60.642314270707, + "proTeam": "Washington Commanders", + "proTeamAbbreviation": "WSH", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Rishard", + "fullName": "Rishard Matthews", + "id": 15102, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Matthews", + "percentChange": -0.482438540122, + "percentOwned": 66.074421922368, + "percentStarted": 17.507578909825, + "proTeam": "Tennessee Titans", + "proTeamAbbreviation": "TEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Ravens", + "fullName": "Ravens D/ST", + "id": -16033, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": -0.256980919905, + "percentOwned": 74.829774063757, + "percentStarted": 42.41958907697, + "proTeam": "Baltimore Ravens", + "proTeamAbbreviation": "BAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 3.048881955278211, + "averageDraftPosition": 113.7, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Kirk", + "fullName": "Kirk Cousins", + "id": 14880, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Cousins", + "percentChange": 0.862936327469, + "percentOwned": 87.436411732217, + "percentStarted": 55.576291386878, + "proTeam": "Washington Commanders", + "proTeamAbbreviation": "WSH", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.391044776119403, + "averageDraftPosition": 144.8, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Bills", + "fullName": "Bills D/ST", + "id": -16002, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": -1.454315847327, + "percentOwned": 63.117526691629, + "percentStarted": 32.361948245382, + "proTeam": "Buffalo Bills", + "proTeamAbbreviation": "BUF", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.1840753424657535, + "averageDraftPosition": 128.5, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Eric", + "fullName": "Eric Ebron", + "id": 16732, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ebron", + "percentChange": 1.33539841406, + "percentOwned": 77.35082492316, + "percentStarted": 55.567789724083, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.759009009009009, + "averageDraftPosition": 134.5, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Alfred", + "fullName": "Alfred Morris", + "id": 15009, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Morris", + "percentChange": 2.363763877462, + "percentOwned": 9.73803976221, + "percentStarted": 1.220158381058, + "proTeam": "Dallas Cowboys", + "proTeamAbbreviation": "DAL", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1536.4, + "winningPercentage": 38.46, + "wins": 5, + }, + Team { + "abbreviation": "ZEKE", + "awayLosses": 3, + "awayTies": 0, + "awayWins": 4, + "divisionLosses": 4, + "divisionTies": 0, + "divisionWins": 2, + "finalStandingsPosition": 6, + "homeLosses": 5, + "homeTies": 0, + "homeWins": 1, + "id": 8, + "leagueId": "336358", + "logoURL": "http://sportsdata-corpsite-wordpress.s3.amazonaws.com/wp-content/uploads/2014/03/Ben-Tate-01.jpg", + "losses": 8, + "name": "Team Buckeyes", + "ownerName": "Kyle Martin", + "playoffSeed": 5, + "regularSeasonPointsAgainst": 1352.88, + "regularSeasonPointsFor": 1292.6799999999998, + "roster": [ + Player { + "auctionValueAverage": 56.33099649474212, + "averageDraftPosition": 7.8, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Ezekiel", + "fullName": "Ezekiel Elliott", + "id": 3051392, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Elliott", + "percentChange": -0.009026255961, + "percentOwned": 99.934669900071, + "percentStarted": 31.254965087594, + "proTeam": "Dallas Cowboys", + "proTeamAbbreviation": "DAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 50.065598397596396, + "averageDraftPosition": 10.6, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "A.J.", + "fullName": "A.J. Green", + "id": 13983, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Green", + "percentChange": -2.808040786461, + "percentOwned": 85.540602332941, + "percentStarted": 2.513157540817, + "proTeam": "Cincinnati Bengals", + "proTeamAbbreviation": "CIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 32.394591887831744, + "averageDraftPosition": 28.8, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Mike", + "fullName": "Mike Evans", + "id": 16737, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Evans", + "percentChange": 0.00054345465, + "percentOwned": 99.85393005373, + "percentStarted": 98.922171101315, + "proTeam": "Tampa Bay Buccaneers", + "proTeamAbbreviation": "TB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 11.900300601202405, + "averageDraftPosition": 50.8, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Kelvin", + "fullName": "Kelvin Benjamin", + "id": 16730, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Benjamin", + "percentChange": 0.426410183142, + "percentOwned": 91.21844286689, + "percentStarted": 36.905332230013, + "proTeam": "Carolina Panthers", + "proTeamAbbreviation": "CAR", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 19.451256281407034, + "averageDraftPosition": 34.2, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Russell", + "fullName": "Russell Wilson", + "id": 14881, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Wilson", + "percentChange": 0.21733145521, + "percentOwned": 96.020919590324, + "percentStarted": 70.517905135468, + "proTeam": "Seattle Seahawks", + "proTeamAbbreviation": "SEA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 8.920881321982975, + "averageDraftPosition": 61.8, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Emmanuel", + "fullName": "Emmanuel Sanders", + "id": 13295, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Sanders", + "percentChange": -0.040476761133, + "percentOwned": 95.915313070528, + "percentStarted": 62.007631853192, + "proTeam": "Denver Broncos", + "proTeamAbbreviation": "DEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4786174575278266, + "averageDraftPosition": 131.1, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Michael", + "fullName": "Michael Thomas", + "id": 2976316, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Thomas", + "percentChange": 0.857189076531, + "percentOwned": 87.813932040234, + "percentStarted": 69.914401821483, + "proTeam": "New Orleans Saints", + "proTeamAbbreviation": "NO", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 4.98051282051282, + "averageDraftPosition": 67, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Broncos", + "fullName": "Broncos D/ST", + "id": -16007, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.055367356664, + "percentOwned": 96.395601848871, + "percentStarted": 65.861540640409, + "proTeam": "Denver Broncos", + "proTeamAbbreviation": "DEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.3650429799426933, + "averageDraftPosition": 128.7, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Travis", + "fullName": "Travis Benjamin", + "id": 15062, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Benjamin", + "percentChange": -0.061604237988, + "percentOwned": 33.620944282837, + "percentStarted": 3.628552248825, + "proTeam": "Los Angeles Chargers", + "proTeamAbbreviation": "LAC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.6637931034482758, + "averageDraftPosition": 170, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Kyle", + "fullName": "Kyle Rudolph", + "id": 14054, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Rudolph", + "percentChange": 0.719516991439, + "percentOwned": 87.160735382954, + "percentStarted": 67.711791466863, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.04406364749082, + "averageDraftPosition": 120, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Marcus", + "fullName": "Marcus Mariota", + "id": 2576980, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Mariota", + "percentChange": -4.981024648442, + "percentOwned": 56.270344673648, + "percentStarted": 1.690816763081, + "proTeam": "Tennessee Titans", + "proTeamAbbreviation": "TEN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 16.70255383074612, + "averageDraftPosition": 51.7, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jeremy", + "fullName": "Jeremy Hill", + "id": 16803, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hill", + "percentChange": -0.310382717679, + "percentOwned": 95.161006067625, + "percentStarted": 14.956947556585, + "proTeam": "Cincinnati Bengals", + "proTeamAbbreviation": "CIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.3394495412844036, + "averageDraftPosition": 145.1, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Cairo", + "fullName": "Cairo Santos", + "id": 17427, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Santos", + "percentChange": 1.808967507493, + "percentOwned": 47.817709460922, + "percentStarted": 36.725842534459, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.8775201612903225, + "averageDraftPosition": 95.9, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Chris", + "fullName": "Chris Ivory", + "id": 13587, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ivory", + "percentChange": 2.573100645541, + "percentOwned": 47.05043574538, + "percentStarted": 6.781523389335, + "proTeam": "Jacksonville Jaguars", + "proTeamAbbreviation": "JAX", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.7960199004975124, + "averageDraftPosition": 147.2, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Kenneth", + "fullName": "Kenneth Dixon", + "id": 2971888, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Dixon", + "percentChange": -1.958208328125, + "percentOwned": 41.47132169576, + "percentStarted": 13.363733523334, + "proTeam": "Baltimore Ravens", + "proTeamAbbreviation": "BAL", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1638.86, + "winningPercentage": 38.46, + "wins": 5, + }, + Team { + "abbreviation": "GOAT", + "awayLosses": 2, + "awayTies": 0, + "awayWins": 4, + "divisionLosses": 4, + "divisionTies": 0, + "divisionWins": 2, + "finalStandingsPosition": 4, + "homeLosses": 5, + "homeTies": 0, + "homeWins": 2, + "id": 9, + "leagueId": "336358", + "logoURL": "http://i.imgur.com/C17g1Af.gif", + "losses": 7, + "name": "I Don't Belong In The Playoffs", + "ownerName": "Mike Kreiser", + "playoffSeed": 4, + "regularSeasonPointsAgainst": 1268.0400000000002, + "regularSeasonPointsFor": 1174.5399999999997, + "roster": [ + Player { + "auctionValueAverage": 44.194291437155734, + "averageDraftPosition": 17.6, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Lamar", + "fullName": "Lamar Miller", + "id": 14886, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Miller", + "percentChange": -3.088365985835, + "percentOwned": 92.012725200319, + "percentStarted": 4.816182099658, + "proTeam": "Houston Texans", + "proTeamAbbreviation": "HOU", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 21.960440660991488, + "averageDraftPosition": 44, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "T.Y.", + "fullName": "T.Y. Hilton", + "id": 14924, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hilton", + "percentChange": -0.017295992552, + "percentOwned": 99.431556508809, + "percentStarted": 96.253799492085, + "proTeam": "Indianapolis Colts", + "proTeamAbbreviation": "IND", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 13.635678391959798, + "averageDraftPosition": 41.6, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Drew", + "fullName": "Drew Brees", + "id": 2580, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Brees", + "percentChange": 0.019104585863, + "percentOwned": 99.449316874096, + "percentStarted": 86.525056399077, + "proTeam": "New Orleans Saints", + "proTeamAbbreviation": "NO", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 14.656985478217326, + "averageDraftPosition": 53.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jeremy", + "fullName": "Jeremy Maclin", + "id": 12579, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Maclin", + "percentChange": 0.179740701186, + "percentOwned": 60.501851490937, + "percentStarted": 17.168193334632, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 5.7230306071249375, + "averageDraftPosition": 76.8, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Frank", + "fullName": "Frank Gore", + "id": 8479, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Gore", + "percentChange": -0.034044760535, + "percentOwned": 96.520868398065, + "percentStarted": 87.359652299891, + "proTeam": "Indianapolis Colts", + "proTeamAbbreviation": "IND", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.826241134751773, + "averageDraftPosition": 101.6, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Sterling", + "fullName": "Sterling Shepard", + "id": 2976592, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Shepard", + "percentChange": 0.273324769341, + "percentOwned": 64.022978501175, + "percentStarted": 15.380799025154, + "proTeam": "New York Giants", + "proTeamAbbreviation": "NYG", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.7490890161374284, + "averageDraftPosition": 102.3, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Willie", + "fullName": "Willie Snead", + "id": 17258, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Snead", + "percentChange": 0.076090587967, + "percentOwned": 77.719961396171, + "percentStarted": 39.523886118706, + "proTeam": "New Orleans Saints", + "proTeamAbbreviation": "NO", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.5031282586027113, + "averageDraftPosition": 134.3, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Justin", + "fullName": "Justin Tucker", + "id": 15683, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Tucker", + "percentChange": 0.170364967672, + "percentOwned": 95.332533196166, + "percentStarted": 89.391832250608, + "proTeam": "Baltimore Ravens", + "proTeamAbbreviation": "BAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.4393476044852194, + "averageDraftPosition": 103.3, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Stefon", + "fullName": "Stefon Diggs", + "id": 2976212, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Diggs", + "percentChange": -2.050163767675, + "percentOwned": 84.514690361896, + "percentStarted": 3.235113880093, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.500780031201248, + "averageDraftPosition": 133, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Chiefs", + "fullName": "Chiefs D/ST", + "id": -16012, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 0.532237417461, + "percentOwned": 90.917925668288, + "percentStarted": 72.883566592288, + "proTeam": "Kansas City Chiefs", + "proTeamAbbreviation": "KC", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.2655826558265582, + "averageDraftPosition": 133.2, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Darren", + "fullName": "Darren Sproles", + "id": 8544, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Sproles", + "percentChange": 0.704119395568, + "percentOwned": 78.562001863161, + "percentStarted": 57.96307318083, + "proTeam": "Philadelphia Eagles", + "proTeamAbbreviation": "PHI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Tim", + "fullName": "Tim Hightower", + "id": 11383, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hightower", + "percentChange": -1.370941312987, + "percentOwned": 54.777964186667, + "percentStarted": 15.824973465265, + "proTeam": "San Francisco 49ers", + "proTeamAbbreviation": "SF", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.811138014527845, + "averageDraftPosition": 119.1, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Martellus", + "fullName": "Martellus Bennett", + "id": 11295, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Bennett", + "percentChange": 1.739840802548, + "percentOwned": 84.332686149423, + "percentStarted": 41.956428553417, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Kenny", + "fullName": "Kenny Britt", + "id": 12556, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Britt", + "percentChange": -4.582262017331, + "percentOwned": 53.165639972621, + "percentStarted": 1.547170887519, + "proTeam": "Cleveland Browns", + "proTeamAbbreviation": "CLE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.3534218590398366, + "averageDraftPosition": 106, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Zach", + "fullName": "Zach Ertz", + "id": 15835, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ertz", + "percentChange": 1.617898175503, + "percentOwned": 82.099225773209, + "percentStarted": 63.864896747162, + "proTeam": "Philadelphia Eagles", + "proTeamAbbreviation": "PHI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB", + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Ty", + "fullName": "Ty Montgomery", + "id": 2577134, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Montgomery", + "percentChange": 1.730721751578, + "percentOwned": 89.931125082105, + "percentStarted": 77.287792061555, + "proTeam": "Green Bay Packers", + "proTeamAbbreviation": "GB", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1538.74, + "winningPercentage": 46.15, + "wins": 6, + }, + Team { + "abbreviation": "YOC", + "awayLosses": 5, + "awayTies": 0, + "awayWins": 2, + "divisionLosses": 3, + "divisionTies": 0, + "divisionWins": 3, + "finalStandingsPosition": 5, + "homeLosses": 3, + "homeTies": 0, + "homeWins": 3, + "id": 12, + "leagueId": "336358", + "logoURL": "http://g.espncdn.com/s/ffllm/logos/CoachGruden-ChipWass/gruden-15.svg", + "losses": 8, + "name": "Make It NAZty", + "ownerName": "Jacob Chrysler", + "playoffSeed": 8, + "regularSeasonPointsAgainst": 1247.58, + "regularSeasonPointsFor": 1135.1, + "roster": [ + Player { + "auctionValueAverage": 57.95142714071107, + "averageDraftPosition": 2.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Odell", + "fullName": "Odell Beckham Jr.", + "id": 16733, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Beckham Jr.", + "percentChange": -0.005386275427, + "percentOwned": 99.932590268971, + "percentStarted": 69.159714342921, + "proTeam": "New York Giants", + "proTeamAbbreviation": "NYG", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 15.815577889447237, + "averageDraftPosition": 42.5, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Andrew", + "fullName": "Andrew Luck", + "id": 14874, + "isDroppable": false, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Luck", + "percentChange": 0.017066650234, + "percentOwned": 99.241622574955, + "percentStarted": 69.506172839506, + "proTeam": "Indianapolis Colts", + "proTeamAbbreviation": "IND", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4024056861673044, + "averageDraftPosition": 120.4, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Isaiah", + "fullName": "Isaiah Crowell", + "id": 17133, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Crowell", + "percentChange": -0.162304110186, + "percentOwned": 85.790498324831, + "percentStarted": 46.31991186502, + "proTeam": "Cleveland Browns", + "proTeamAbbreviation": "CLE", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 3.1931623931623934, + "averageDraftPosition": 114.2, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Matt", + "fullName": "Matt Ryan", + "id": 11237, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ryan", + "percentChange": 0.174329601947, + "percentOwned": 97.539765481931, + "percentStarted": 82.42744417492, + "proTeam": "Atlanta Falcons", + "proTeamAbbreviation": "ATL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.7036649214659685, + "averageDraftPosition": 120, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Jay", + "fullName": "Jay Ajayi", + "id": 2573300, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Ajayi", + "percentChange": 0.119429103578, + "percentOwned": 97.280308045502, + "percentStarted": 67.787016173603, + "proTeam": "Miami Dolphins", + "proTeamAbbreviation": "MIA", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 2.5520246027678115, + "averageDraftPosition": 116.6, + "defaultPosition": "D/ST", + "eligiblePositions": [ + "D/ST", + "Bench", + "IR", + ], + "firstName": "Cardinals", + "fullName": "Cardinals D/ST", + "id": -16022, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "D/ST", + "percentChange": 1.592729529312, + "percentOwned": 87.911401233018, + "percentStarted": 75.606884816023, + "proTeam": "Arizona Cardinals", + "proTeamAbbreviation": "ARI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 11.397596394591888, + "averageDraftPosition": 60.9, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Golden", + "fullName": "Golden Tate", + "id": 13217, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Tate", + "percentChange": 0.121626580173, + "percentOwned": 91.444491465651, + "percentStarted": 71.481638218836, + "proTeam": "Detroit Lions", + "proTeamAbbreviation": "DET", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4982456140350877, + "averageDraftPosition": 114.9, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Sebastian", + "fullName": "Sebastian Janikowski", + "id": 2148, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Janikowski", + "percentChange": -1.397810005018, + "percentOwned": 56.066264604203, + "percentStarted": 45.088823841126, + "proTeam": "Las Vegas Raiders", + "proTeamAbbreviation": "LV", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 1.4491701244813278, + "averageDraftPosition": 113.1, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Bilal", + "fullName": "Bilal Powell", + "id": 14129, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Powell", + "percentChange": 1.138833313822, + "percentOwned": 89.53525245763, + "percentStarted": 69.147870557264, + "proTeam": "New York Jets", + "proTeamAbbreviation": "NYJ", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "WR", + "eligiblePositions": [ + "WR/TE", + "TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Dennis", + "fullName": "Dennis Pitta", + "id": 13231, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Pitta", + "percentChange": 1.948057068122, + "percentOwned": 52.576094056172, + "percentStarted": 35.063357282821, + "proTeam": "Baltimore Ravens", + "proTeamAbbreviation": "BAL", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Fitzgerald", + "fullName": "Fitzgerald Toussaint", + "id": 17465, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Toussaint", + "percentChange": 0.905390910142, + "percentOwned": 47.06408749887, + "percentStarted": 16.116785682003, + "proTeam": "Pittsburgh Steelers", + "proTeamAbbreviation": "PIT", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "J.J.", + "fullName": "J.J. Nelson", + "id": 2515759, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Nelson", + "percentChange": 6.322444995972, + "percentOwned": 36.218537351776, + "percentStarted": 21.697151774434, + "proTeam": "Arizona Cardinals", + "proTeamAbbreviation": "ARI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB", + "eligiblePositions": [ + "RB", + "RB/WR", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Alfred", + "fullName": "Alfred Blue", + "id": 16921, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Blue", + "percentChange": 1.071711569297, + "percentOwned": 39.391265542911, + "percentStarted": 22.413233534148, + "proTeam": "Houston Texans", + "proTeamAbbreviation": "HOU", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "RB/WR", + "eligiblePositions": [ + "RB/WR", + "WR", + "WR/TE", + "OP", + "Bench", + "IR", + "RB/WR/TE", + ], + "firstName": "Adam", + "fullName": "Adam Thielen", + "id": 16460, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Thielen", + "percentChange": 11.625360519521, + "percentOwned": 59.031788554432, + "percentStarted": 42.95652540764, + "proTeam": "Minnesota Vikings", + "proTeamAbbreviation": "MIN", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 8.564321608040201, + "averageDraftPosition": 67, + "defaultPosition": "TQB", + "eligiblePositions": [ + "QB", + "OP", + "Bench", + "IR", + ], + "firstName": "Carson", + "fullName": "Carson Palmer", + "id": 4459, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Palmer", + "percentChange": 1.015541024623, + "percentOwned": 77.818442882002, + "percentStarted": 45.738878007288, + "proTeam": "Arizona Cardinals", + "proTeamAbbreviation": "ARI", + "seasonId": 2016, + }, + Player { + "auctionValueAverage": 0, + "averageDraftPosition": 170, + "defaultPosition": "WR/TE", + "eligiblePositions": [ + "K", + "Bench", + "IR", + ], + "firstName": "Dustin", + "fullName": "Dustin Hopkins", + "id": 15965, + "isDroppable": true, + "isInjured": false, + "jerseyNumber": NaN, + "lastName": "Hopkins", + "percentChange": 1.407287984643, + "percentOwned": 70.462751538193, + "percentStarted": 63.448927482762, + "proTeam": "Washington Commanders", + "proTeamAbbreviation": "WSH", + "seasonId": 2016, + }, + ], + "seasonId": 2016, + "ties": 0, + "totalPointsScored": 1534.14, + "winningPercentage": 38.46, + "wins": 5, + }, +] +`; diff --git a/integration-tests/2016-season/integration.test.js b/integration-tests/2016-season/integration.test.js index 9c78c36..b1dd383 100644 --- a/integration-tests/2016-season/integration.test.js +++ b/integration-tests/2016-season/integration.test.js @@ -31,4 +31,11 @@ describe('2016 season integration tests', () => { expect(scoreboards).toMatchSnapshot(); }); }); + + describe('getHistoricalTeamsAtWeek', () => { + test('returns a populated array of Teams', async () => { + const teams = await client.getHistoricalTeamsAtWeek({ seasonId, scoringPeriodId}); + expect(teams).toMatchSnapshot(); + }); + }); }); diff --git a/src/client/client.js b/src/client/client.js index 7106eec..33f8f5d 100644 --- a/src/client/client.js +++ b/src/client/client.js @@ -224,6 +224,45 @@ class Client { }); } + /** + * Returns an array of Team object representing each fantasy football team in a pre-2018 FF + * league. + * + * NOTE: This route will error for the current season, as ESPN only exposes this data for previous + * seasons. + * + * @param {object} options Required options object. + * @param {number} options.seasonId The season to grab data from. This value must be before 2018 + * @param {number} options.scoringPeriodId The scoring period in which to grab teams from. + * @returns {Team[]} The list of teams. + */ + getHistoricalTeamsAtWeek({ seasonId, scoringPeriodId }) { + const route = this.constructor._buildRoute({ + base: `${this.leagueId}`, + params: `?scoringPeriodId=${scoringPeriodId}&seasonId=${seasonId}` + + '&view=mMatchupScore&view=mScoreboard&view=mSettings&view=mTopPerformers&view=mTeam' + }); + + const axiosConfig = this._buildAxiosConfig({ + baseURL: 'https://fantasy.espn.com/apis/v3/games/ffl/leagueHistory/' + }); + + return axios.get(route, axiosConfig).then((response) => { + // Join member (owner) information with team data before dumping into builder + const teams = _.get(response.data, 'teams'); + const members = _.get(response.data, 'members'); + + const mergedData = teams.map((team) => { + const owner = members.find((member) => member.id === team.primaryOwner); + return { owner, ...team }; // Don't spread owner to prevent id and other attributes clashing + }); + + return _.map(mergedData, (team) => ( + Team.buildFromServer(team, { leagueId: this.leagueId, seasonId }) + )); + }); + } + /** * Returns all NFL games that occur in the passed timeframe. NOTE: Date format must be "YYYYMMDD". * diff --git a/src/client/client.test.js b/src/client/client.test.js index d66def7..18b84c3 100644 --- a/src/client/client.test.js +++ b/src/client/client.test.js @@ -724,6 +724,146 @@ describe('Client', () => { }); }); + describe('getHistoricalTeamsAtWeek', () => { + let client; + let leagueId; + let scoringPeriodId; + let seasonId; + + beforeEach(() => { + leagueId = 213213; + scoringPeriodId = 3; + seasonId = 2017; + + client = new Client({ leagueId }); + + jest.spyOn(axios, 'get').mockImplementation(); + }); + + test('calls axios.get with the correct params', () => { + const routeBase = `${leagueId}`; + const routeParams = `?scoringPeriodId=${scoringPeriodId}&seasonId=${seasonId}&view=mMatchupScore&view=mScoreboard&view=mSettings&view=mTopPerformers&view=mTeam`; + const route = `${routeBase}${routeParams}`; + const config = {}; + jest.spyOn(client, '_buildAxiosConfig').mockReturnValue(config); + axios.get.mockReturnValue(q()); + + client.getHistoricalTeamsAtWeek({ seasonId, scoringPeriodId }); + expect(axios.get).toBeCalledWith(route, config); + }); + + describe('before the promise resolves', () => { + test('does not invoke callback', () => { + jest.spyOn(Team, 'buildFromServer').mockImplementation(); + axios.get.mockReturnValue(q()); + + client.getHistoricalTeamsAtWeek({ seasonId, scoringPeriodId }); + expect(Team.buildFromServer).not.toBeCalled(); + }); + }); + + describe('after the promise resolves', () => { + test('maps response data into Teams', async () => { + const response = { + data: { + members: [{ + firstName: 'Owner', + id: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4057}', + lastName: 'Dude' + }, { + firstName: 'Owner', + id: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4058}', + lastName: 'Dude' + }, { + firstName: 'Owner', + id: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4059}', + lastName: 'Dude' + }], + teams: [{ + abbrev: 'SWAG', + location: 'First ', + nickname: 'Last', + primaryOwner: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4058}', + record: { + overall: { + wins: 3, + losses: 11 + } + }, + roster: { + entries: [{ + playerPoolEntry: { + firstName: 'Joe', + lastName: 'Montana' + } + }] + } + }, { + abbrev: 'JS', + location: 'First ', + nickname: 'Last', + primaryOwner: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4059}', + record: { + overall: { + wins: 5, + losses: 11 + } + }, + roster: { + entries: [{ + playerPoolEntry: { + firstName: 'Joe', + lastName: 'Smith' + } + }] + } + }, { + abbrev: 'SWAG', + location: 'First ', + nickname: 'Last', + primaryOwner: '{BAD5167F-96F5-40FF-AFF0-4D2CC92F4057}', + record: { + overall: { + wins: 11, + losses: 8 + } + }, + roster: { + entries: [{ + playerPoolEntry: { + firstName: 'Joe', + lastName: 'Brown' + } + }] + } + }] + } + }; + + const promise = q(response); + axios.get.mockReturnValue(promise); + + const teams = await client.getHistoricalTeamsAtWeek({ seasonId, scoringPeriodId }); + + expect.hasAssertions(); + expect(teams.length).toBe(3); + _.forEach(teams, (team, index) => { + expect(team).toBeInstanceOf(Team); + expect(team.abbreviation).toBe(response.data.teams[index].abbrev); + + expect(team.wins).toBe(response.data.teams[index].record.overall.wins); + expect(team.losses).toBe(response.data.teams[index].record.overall.losses); + + expect(team.roster).toEqual(expect.any(Array)); + expect(team.roster[0]).toBeInstanceOf(Player); + expect(team.roster[0].firstName).toBe( + response.data.teams[index].roster.entries[0].playerPoolEntry.firstName + ); + }); + }); + }); + }); + describe('getNFLGamesForPeriod', () => { let client; let endDate;