diff --git a/package-lock.json b/package-lock.json index 2bd4ea0..b2017e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "espn-fantasy-football-api", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "espn-fantasy-football-api", - "version": "1.1.0", + "version": "1.1.1", "license": "LGPL-3.0-only", "dependencies": { "axios": "^1.5.0", diff --git a/package.json b/package.json index 47723d6..ffdfa80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "espn-fantasy-football-api", - "version": "1.1.0", + "version": "1.1.1", "description": "A Javascript API to connect to ESPN's fantasy football API", "main": "web.js", "files": [ diff --git a/src/team/team.js b/src/team/team.js index 50ef722..705ceb0 100644 --- a/src/team/team.js +++ b/src/team/team.js @@ -85,10 +85,7 @@ class Team extends BaseCacheableObject { static responseMap = { id: 'id', abbreviation: 'abbrev', - name: { - key: 'location', - manualParse: (responseData, data) => `${_.trim(data.location)} ${_.trim(data.nickname)}` - }, + name: 'name', logoURL: 'logo', wavierRank: 'wavierRank', diff --git a/src/team/team.test.js b/src/team/team.test.js index c1cc359..2316e99 100644 --- a/src/team/team.test.js +++ b/src/team/team.test.js @@ -42,21 +42,6 @@ describe('Team', () => { describe('responseMap', () => { const buildTeam = (data, options) => Team.buildFromServer(data, options); - describe('name', () => { - describe('manualParse', () => { - test('interpolates location and nickname into a single string', () => { - const data = { - location: ' First ', - nickname: ' Last ', - name: 'This is not used' - }; - const team = buildTeam(data); - - expect(team.name).toBe(`${_.trim(data.location)} ${_.trim(data.nickname)}`); - }); - }); - }); - describe('roster', () => { describe('manualParse', () => { test('returns an array of players', () => {