diff --git a/packages/wow/src/character-achievements/character-achievements.test.ts b/packages/wow/src/character-achievements/character-achievements.test.ts index 2499dd4..c0758b9 100644 --- a/packages/wow/src/character-achievements/character-achievements.test.ts +++ b/packages/wow/src/character-achievements/character-achievements.test.ts @@ -5,13 +5,11 @@ describe('characterAchievementsSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterAchievementsSummary(realmSlug, characterName, token); + const result = characterAchievementsSummary(realmSlug, characterName); expect(result.namespace).toBe('profile'); expect(result.path).toBe('/profile/wow/character/realm/character/achievements'); - expect(result.token).toBe(token); }); }); @@ -19,12 +17,10 @@ describe('characterAchievementStatistics', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterAchievementStatistics(realmSlug, characterName, token); + const result = characterAchievementStatistics(realmSlug, characterName); expect(result.namespace).toBe('profile'); expect(result.path).toBe('/profile/wow/character/realm/character/achievements/statistics'); - expect(result.token).toBe(token); }); }); diff --git a/packages/wow/src/character-appearance/character-appearance.test.ts b/packages/wow/src/character-appearance/character-appearance.test.ts index 2d1da7e..da2b8d2 100644 --- a/packages/wow/src/character-appearance/character-appearance.test.ts +++ b/packages/wow/src/character-appearance/character-appearance.test.ts @@ -5,15 +5,13 @@ describe('characterAppearanceSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: '/profile/wow/character/test-realm/test-character/appearance', - token: 'test-token', }; - const result = characterAppearanceSummary(realmSlug, characterName, token); + const result = characterAppearanceSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-collections/character-collections.test.ts b/packages/wow/src/character-collections/character-collections.test.ts index 9a1040a..4f6797c 100644 --- a/packages/wow/src/character-collections/character-collections.test.ts +++ b/packages/wow/src/character-collections/character-collections.test.ts @@ -11,16 +11,14 @@ import { describe('Character Collections', () => { const realmSlug = 'realm-slug'; const characterName = 'character-name'; - const token = 'token'; it('should generate the correct protected resource for characterCollectionsIndex', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections', - token: 'token', }; - const resource = characterCollectionsIndex(realmSlug, characterName, token); + const resource = characterCollectionsIndex(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); @@ -29,10 +27,9 @@ describe('Character Collections', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections/heirlooms', - token: 'token', }; - const resource = characterHeirloomsCollectionSummary(realmSlug, characterName, token); + const resource = characterHeirloomsCollectionSummary(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); @@ -41,10 +38,9 @@ describe('Character Collections', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections/mounts', - token: 'token', }; - const resource = characterMountsCollectionSummary(realmSlug, characterName, token); + const resource = characterMountsCollectionSummary(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); @@ -53,10 +49,9 @@ describe('Character Collections', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections/pets', - token: 'token', }; - const resource = characterPetsCollectionSummary(realmSlug, characterName, token); + const resource = characterPetsCollectionSummary(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); @@ -65,10 +60,9 @@ describe('Character Collections', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections/toys', - token: 'token', }; - const resource = characterToysCollectionSummary(realmSlug, characterName, token); + const resource = characterToysCollectionSummary(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); @@ -77,10 +71,9 @@ describe('Character Collections', () => { const expectedResource = { namespace: 'profile', path: '/profile/wow/character/realm-slug/character-name/collections/transmogs', - token: 'token', }; - const resource = characterTransmogCollectionSummary(realmSlug, characterName, token); + const resource = characterTransmogCollectionSummary(realmSlug, characterName); expect(resource).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-encounters/character-encounters.test.ts b/packages/wow/src/character-encounters/character-encounters.test.ts index 4024686..9d8d9fa 100644 --- a/packages/wow/src/character-encounters/character-encounters.test.ts +++ b/packages/wow/src/character-encounters/character-encounters.test.ts @@ -5,41 +5,35 @@ describe('Character Encounters', () => { it('should return the correct ProtectedResource object for character encounters', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterEncountersSummary(realmSlug, characterName, token); + const result = characterEncountersSummary(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: 'profile/wow/character/realm/character/encounters', - token, }); }); it('should return the correct ProtectedResource object for character dungeons', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterDungeons(realmSlug, characterName, token); + const result = characterDungeons(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: 'profile/wow/character/realm/character/encounters/dungeons', - token, }); }); it('should return the correct ProtectedResource object for character raids', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterRaids(realmSlug, characterName, token); + const result = characterRaids(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: 'profile/wow/character/realm/character/encounters/raids', - token, }); }); }); diff --git a/packages/wow/src/character-equipment/character-equipment.test.ts b/packages/wow/src/character-equipment/character-equipment.test.ts index ffa8aac..614a425 100644 --- a/packages/wow/src/character-equipment/character-equipment.test.ts +++ b/packages/wow/src/character-equipment/character-equipment.test.ts @@ -5,15 +5,13 @@ describe('characterEquipmentSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: '/profile/wow/character/test-realm/test-character/equipment', - token: 'test-token', }; - const result = characterEquipmentSummary(realmSlug, characterName, token); + const result = characterEquipmentSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-hunter-pets/character-hunter-pets.test.ts b/packages/wow/src/character-hunter-pets/character-hunter-pets.test.ts index d4cd550..be620d3 100644 --- a/packages/wow/src/character-hunter-pets/character-hunter-pets.test.ts +++ b/packages/wow/src/character-hunter-pets/character-hunter-pets.test.ts @@ -5,15 +5,13 @@ describe('characterHunterPetsSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'testRealm'; const characterName = 'testCharacter'; - const token = 'testToken'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/hunter-pets`, - token, }; - const result = characterHunterPetsSummary(realmSlug, characterName, token); + const result = characterHunterPetsSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-media/character-media.test.ts b/packages/wow/src/character-media/character-media.test.ts index 4eabc5d..edc4738 100644 --- a/packages/wow/src/character-media/character-media.test.ts +++ b/packages/wow/src/character-media/character-media.test.ts @@ -5,15 +5,13 @@ describe('characterMediaSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/character-media`, - token, }; - const result = characterMediaSummary(realmSlug, characterName, token); + const result = characterMediaSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-mythic-keystone-profile/character-mythic-keystone-profile.test.ts b/packages/wow/src/character-mythic-keystone-profile/character-mythic-keystone-profile.test.ts index 3a56b31..7b00639 100644 --- a/packages/wow/src/character-mythic-keystone-profile/character-mythic-keystone-profile.test.ts +++ b/packages/wow/src/character-mythic-keystone-profile/character-mythic-keystone-profile.test.ts @@ -8,14 +8,12 @@ describe('Character Mythic Keystone Profile', () => { it('should return the correct ProtectedResource object for characterMythicKeystoneProfileIndex', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterMythicKeystoneProfileIndex(realmSlug, characterName, token); + const result = characterMythicKeystoneProfileIndex(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile`, - token, }); }); @@ -23,14 +21,12 @@ describe('Character Mythic Keystone Profile', () => { const realmSlug = 'realm'; const characterName = 'character'; const seasonId = 123; - const token = 'token'; - const result = characterMythicKeystoneSeasonDetails(realmSlug, characterName, seasonId, token); + const result = characterMythicKeystoneSeasonDetails(realmSlug, characterName, seasonId); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/mythic-keystone-profile/season/${seasonId}`, - token, }); }); }); diff --git a/packages/wow/src/character-professions/character-professions.test.ts b/packages/wow/src/character-professions/character-professions.test.ts index cd6b031..93fade5 100644 --- a/packages/wow/src/character-professions/character-professions.test.ts +++ b/packages/wow/src/character-professions/character-professions.test.ts @@ -5,15 +5,13 @@ describe('characterProfessionsSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: '/profile/wow/character/test-realm/test-character/professions', - token: 'test-token', }; - const result = characterProfessionsSummary(realmSlug, characterName, token); + const result = characterProfessionsSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-profile/character-profile.test.ts b/packages/wow/src/character-profile/character-profile.test.ts index 4568b8f..2439223 100644 --- a/packages/wow/src/character-profile/character-profile.test.ts +++ b/packages/wow/src/character-profile/character-profile.test.ts @@ -5,14 +5,12 @@ describe('characterProfileSummary', () => { it('should return the correct protected resource object', () => { const realmSlug = 'example-realm'; const characterName = 'example-character'; - const token = 'example-token'; - const result = characterProfileSummary(realmSlug, characterName, token); + const result = characterProfileSummary(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}`, - token, }); }); }); @@ -21,14 +19,12 @@ describe('characterProfileStatus', () => { it('should return the correct protected resource object', () => { const realmSlug = 'example-realm'; const characterName = 'example-character'; - const token = 'example-token'; - const result = characterProfileStatus(realmSlug, characterName, token); + const result = characterProfileStatus(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status`, - token, }); }); }); diff --git a/packages/wow/src/character-pvp/character-pvp.test.ts b/packages/wow/src/character-pvp/character-pvp.test.ts index 2b8582f..43d96c7 100644 --- a/packages/wow/src/character-pvp/character-pvp.test.ts +++ b/packages/wow/src/character-pvp/character-pvp.test.ts @@ -5,15 +5,13 @@ describe('characterPvpSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'example-realm'; const characterName = 'example-character'; - const token = 'example-token'; const expectedResource = { namespace: 'profile', path: '/profile/wow/character/example-realm/example-character/pvp-summary', - token: 'example-token', }; - const result = characterPvpSummary(realmSlug, characterName, token); + const result = characterPvpSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-quests/character-quests.test.ts b/packages/wow/src/character-quests/character-quests.test.ts index c6f0140..2016888 100644 --- a/packages/wow/src/character-quests/character-quests.test.ts +++ b/packages/wow/src/character-quests/character-quests.test.ts @@ -5,14 +5,12 @@ describe('characterQuests', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterQuests(realmSlug, characterName, token); + const result = characterQuests(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/quests`, - token, }); }); }); @@ -21,14 +19,12 @@ describe('characterCompletedQuests', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'realm'; const characterName = 'character'; - const token = 'token'; - const result = characterCompletedQuests(realmSlug, characterName, token); + const result = characterCompletedQuests(realmSlug, characterName); expect(result).toEqual({ namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed`, - token, }); }); }); diff --git a/packages/wow/src/character-reputations/character-reputations.test.ts b/packages/wow/src/character-reputations/character-reputations.test.ts index 00464bc..35c700f 100644 --- a/packages/wow/src/character-reputations/character-reputations.test.ts +++ b/packages/wow/src/character-reputations/character-reputations.test.ts @@ -5,15 +5,13 @@ describe('characterReputationsSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/reputations`, - token, }; - const result = characterReputationsSummary(realmSlug, characterName, token); + const result = characterReputationsSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-soulbinds/character-soulbinds.test.ts b/packages/wow/src/character-soulbinds/character-soulbinds.test.ts index c3ff90a..e2c40d8 100644 --- a/packages/wow/src/character-soulbinds/character-soulbinds.test.ts +++ b/packages/wow/src/character-soulbinds/character-soulbinds.test.ts @@ -5,15 +5,13 @@ describe('characterSoulbinds', () => { it('returns the correct ProtectedResource object', () => { const realmSlug = 'example-realm'; const characterName = 'example-character'; - const token = 'example-token'; const expectedResource = { namespace: 'profile', path: '/profile/wow/character/example-realm/example-character/soulbinds', - token: 'example-token', }; - const result = characterSoulbinds(realmSlug, characterName, token); + const result = characterSoulbinds(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-specializations/character-specializations.test.ts b/packages/wow/src/character-specializations/character-specializations.test.ts index 7051832..c6587da 100644 --- a/packages/wow/src/character-specializations/character-specializations.test.ts +++ b/packages/wow/src/character-specializations/character-specializations.test.ts @@ -5,15 +5,13 @@ describe('characterSpecializationsSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/specializations`, - token, }; - const result = characterSpecializationsSummary(realmSlug, characterName, token); + const result = characterSpecializationsSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-statistics/character-statistics.test.ts b/packages/wow/src/character-statistics/character-statistics.test.ts index b7f7053..896d081 100644 --- a/packages/wow/src/character-statistics/character-statistics.test.ts +++ b/packages/wow/src/character-statistics/character-statistics.test.ts @@ -5,15 +5,13 @@ describe('characterStatisticsSummary', () => { it('should return the correct protected resource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/statistics`, - token, }; - const result = characterStatisticsSummary(realmSlug, characterName, token); + const result = characterStatisticsSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/character-titles/character-titles.test.ts b/packages/wow/src/character-titles/character-titles.test.ts index 5fe44be..39b7a96 100644 --- a/packages/wow/src/character-titles/character-titles.test.ts +++ b/packages/wow/src/character-titles/character-titles.test.ts @@ -5,15 +5,13 @@ describe('characterTitlesSummary', () => { it('should return the correct ProtectedResource object', () => { const realmSlug = 'test-realm'; const characterName = 'test-character'; - const token = 'test-token'; const expectedResource = { namespace: 'profile', path: `/profile/wow/character/${realmSlug}/${characterName}/titles`, - token, }; - const result = characterTitlesSummary(realmSlug, characterName, token); + const result = characterTitlesSummary(realmSlug, characterName); expect(result).toEqual(expectedResource); }); diff --git a/packages/wow/src/guild/guild.test.ts b/packages/wow/src/guild/guild.test.ts index 688bda6..c27df15 100644 --- a/packages/wow/src/guild/guild.test.ts +++ b/packages/wow/src/guild/guild.test.ts @@ -5,48 +5,40 @@ describe('guild', () => { it('should return the correct ProtectedResource for guild', () => { const realmSlug = 'realm'; const nameSlug = 'name'; - const token = 'token'; - const result = guild(realmSlug, nameSlug, token); + const result = guild(realmSlug, nameSlug); expect(result.namespace).toBe('profile'); expect(result.path).toBe(`/data/wow/guild/${realmSlug}/${nameSlug}`); - expect(result.token).toBe(token); }); it('should return the correct ProtectedResource for guildActivity', () => { const realmSlug = 'realm'; const nameSlug = 'name'; - const token = 'token'; - const result = guildActivity(realmSlug, nameSlug, token); + const result = guildActivity(realmSlug, nameSlug); expect(result.namespace).toBe('profile'); expect(result.path).toBe(`/data/wow/guild/${realmSlug}/${nameSlug}/activity`); - expect(result.token).toBe(token); }); it('should return the correct ProtectedResource for guildAchievements', () => { const realmSlug = 'realm'; const nameSlug = 'name'; - const token = 'token'; - const result = guildAchievements(realmSlug, nameSlug, token); + const result = guildAchievements(realmSlug, nameSlug); expect(result.namespace).toBe('profile'); expect(result.path).toBe(`/data/wow/guild/${realmSlug}/${nameSlug}/achievements`); - expect(result.token).toBe(token); }); it('should return the correct ProtectedResource for guildRoster', () => { const realmSlug = 'realm'; const nameSlug = 'name'; - const token = 'token'; - const result = guildRoster(realmSlug, nameSlug, token); + const result = guildRoster(realmSlug, nameSlug); expect(result.namespace).toBe('profile'); expect(result.path).toBe(`/data/wow/guild/${realmSlug}/${nameSlug}/roster`); - expect(result.token).toBe(token); }); });