@@ -63,6 +63,8 @@ const regionIdsLgaNameStates = JSON.stringify(
63
63
require ( "../../wwwroot/data/regionids/region_map-FID_LGA_2011_AUST_STE_NAME11.json" )
64
64
) ;
65
65
66
+ const NUMBER_OF_REGION_MAPPING_TYPES = 144 ;
67
+
66
68
describe ( "TableMixin" , function ( ) {
67
69
let item : CsvCatalogItem ;
68
70
let terria : Terria ;
@@ -591,7 +593,9 @@ describe("TableMixin", function () {
591
593
592
594
( await item . loadMapItems ( ) ) . throwIfError ( ) ;
593
595
594
- expect ( item . regionProviderLists ?. [ 0 ] ?. regionProviders . length ) . toBe ( 143 ) ;
596
+ expect ( item . regionProviderLists ?. [ 0 ] ?. regionProviders . length ) . toBe (
597
+ NUMBER_OF_REGION_MAPPING_TYPES
598
+ ) ;
595
599
} ) ;
596
600
597
601
it ( "loads regionProviderLists on loadMapItems - with multiple regionMappingDefinitionsUrl" , async function ( ) {
@@ -620,7 +624,9 @@ describe("TableMixin", function () {
620
624
expect ( item . regionProviderLists ?. length ) . toBe ( 2 ) ;
621
625
622
626
expect ( item . regionProviderLists ?. [ 0 ] ?. regionProviders . length ) . toBe ( 2 ) ;
623
- expect ( item . regionProviderLists ?. [ 1 ] ?. regionProviders . length ) . toBe ( 143 ) ;
627
+ expect ( item . regionProviderLists ?. [ 1 ] ?. regionProviders . length ) . toBe (
628
+ NUMBER_OF_REGION_MAPPING_TYPES
629
+ ) ;
624
630
625
631
// Item region provider should match from "additionalRegion.json" (as it comes before "build/TerriaJS/data/regionMapping.json")
626
632
expect ( item . activeTableStyle . regionColumn ?. regionType ?. description ) . toBe (
@@ -654,7 +660,9 @@ describe("TableMixin", function () {
654
660
655
661
expect ( item . regionProviderLists ?. length ) . toBe ( 1 ) ;
656
662
657
- expect ( item . regionProviderLists ?. [ 0 ] ?. regionProviders . length ) . toBe ( 143 ) ;
663
+ expect ( item . regionProviderLists ?. [ 0 ] ?. regionProviders . length ) . toBe (
664
+ NUMBER_OF_REGION_MAPPING_TYPES
665
+ ) ;
658
666
659
667
// Item region provider should match from "build/TerriaJS/data/regionMapping.json"
660
668
expect ( item . activeTableStyle . regionColumn ?. regionType ?. description ) . toBe (
0 commit comments