diff --git a/src/entity/world/Worlds.ts b/src/entity/world/Worlds.ts index e4a04cc..dcac5c9 100644 --- a/src/entity/world/Worlds.ts +++ b/src/entity/world/Worlds.ts @@ -48,6 +48,9 @@ export default class Worlds { case 2: region = Region.Europe break + case 3: + region = Region.Oceania + break default: throw Error('Could not find matching region') } diff --git a/src/entity/world/__tests__/Worlds.test.ts b/src/entity/world/__tests__/Worlds.test.ts index 86be37a..287f66d 100644 --- a/src/entity/world/__tests__/Worlds.test.ts +++ b/src/entity/world/__tests__/Worlds.test.ts @@ -45,11 +45,11 @@ describe('Worlds', () => { }) it('should return an array of servers of expected length', () => { - expect(resultantServers.servers.length).toEqual(68) + expect(resultantServers.servers.length).toEqual(73) }) it('should return array of data centers of expected length', () => { - expect(resultantServers.dataCenters.length).toEqual(8) + expect(resultantServers.dataCenters.length).toEqual(9) }) describe('when status is not requested', () => { @@ -77,9 +77,10 @@ describe('Worlds', () => { }) describe.each([ - ['Cerberus', 'Chaos', 'Europe', WorldCategory.Standard, WorldStatus.CreationOfNewCharactersUnavailable], - ['Ridill', 'Gaia', 'Japan', WorldCategory.Preferred, WorldStatus.CreationOfNewCharacters], - ['Siren', 'Aether', 'North America', WorldCategory.Standard, WorldStatus.CreationOfNewCharacters], + ['Cerberus', 'Chaos', 'Europe', WorldCategory.Congested, WorldStatus.CreationOfNewCharactersUnavailable], + ['Ridill', 'Gaia', 'Japan', WorldCategory.Standard, WorldStatus.CreationOfNewCharactersUnavailable], + ['Ultros', 'Primal', 'North America', WorldCategory.Standard, WorldStatus.CreationOfNewCharacters], + ['Bismarck', 'Materia', 'Oceania', WorldCategory.New, WorldStatus.CreationOfNewCharacters], ])('servers array should contain %s', (serverName, dataCenter, region, category, status) => { let foundServer: World | undefined diff --git a/src/entity/world/__tests__/resources/worldstatus.html b/src/entity/world/__tests__/resources/worldstatus.html index c975e6d..4599ea4 100644 --- a/src/entity/world/__tests__/resources/worldstatus.html +++ b/src/entity/world/__tests__/resources/worldstatus.html @@ -29,15 +29,15 @@ Server Status | FINAL FANTASY XIV, The Lodestone - + @@ -47,10 +47,10 @@ - - - - + + + + @@ -63,23 +63,23 @@ - + - + - @@ -111,6 +111,7 @@ + @@ -118,11 +119,11 @@ - + - + @@ -162,16 +163,18 @@ var api_uri = '/lodestone/api/'; var static_uri = 'https://img.finalfantasyxiv.com/lds/'; var subdomain = 'eu'; - var csrf_token = 'bd4b9b7d7ed2ccc7d378bcc508d4eff9870f8062'; + var csrf_token = 'ca14d8c7c70ebbc5d651cbf180392a75698c7566'; var cis_origin = 'https://secure.square\u002denix.com'; var ldst_max_image_size = 31457280; var eorzeadb = { cdn_prefix: 'https://img.finalfantasyxiv.com/lds/', - version: '1626758274', + version: '1643084250', version_js_uri: 'https://img.finalfantasyxiv.com/lds/pc/global/js/eorzeadb/version.js', dynamic_tooltip: false }; var cookie_suffix = ''; + var ldst_is_loggedin = false; + var show_achievement = false; @@ -188,7 +191,7 @@ + height="0" width="0" style="display:none;visibility:hidden"> @@ -224,15 +227,15 @@ English @@ -255,11 +258,11 @@