@@ -26,7 +26,7 @@ const createAncestryGroupObjects = (shorthands: AncestryGroupShorthand[]) => {
2626} 
2727
2828describe ( 'mergeExomeAndGenomePopulationData' ,  ( )  =>  { 
29-   it ( 'returns expected values when exomes and genomes have the same populations ' ,  ( )  =>  { 
29+   it ( 'returns expected values when exomes and genomes have the same ancestry_groups ' ,  ( )  =>  { 
3030    const  geneticAncestryGroupObjects  =  createAncestryGroupObjects ( [ 
3131      {  id : 'afr' ,  value : 1  } , 
3232      {  id : 'remaining' ,  value : 2  } , 
@@ -35,8 +35,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
3535
3636    const  testVariant  =  variantFactory . build ( { 
3737      variant_id : 'test_variant' , 
38-       exome : {  populations : geneticAncestryGroupObjects  } , 
39-       genome : {  populations : geneticAncestryGroupObjects  } , 
38+       exome : {  ancestry_groups : geneticAncestryGroupObjects  } , 
39+       genome : {  ancestry_groups : geneticAncestryGroupObjects  } , 
4040    } ) 
4141
4242    const  result  =  mergeExomeAndGenomePopulationData ( testVariant . exome ! ,  testVariant . genome ! ) 
@@ -50,7 +50,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
5050    expect ( result ) . toStrictEqual ( expected ) 
5151  } ) 
5252
53-   it ( 'returns expected values when exomes have less populations  than genomes' ,  ( )  =>  { 
53+   it ( 'returns expected values when exomes have less ancestry_groups  than genomes' ,  ( )  =>  { 
5454    const  exomeGeneticAncestryGroupObjects  =  createAncestryGroupObjects ( [ 
5555      {  id : 'afr' ,  value : 1  } , 
5656      {  id : 'remaining' ,  value : 2  } , 
@@ -66,8 +66,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
6666
6767    const  testVariant  =  variantFactory . build ( { 
6868      variant_id : 'test_variant' , 
69-       exome : {  populations : exomeGeneticAncestryGroupObjects  } , 
70-       genome : {  populations : genomeGeneticAncestryGroupObjects  } , 
69+       exome : {  ancestry_groups : exomeGeneticAncestryGroupObjects  } , 
70+       genome : {  ancestry_groups : genomeGeneticAncestryGroupObjects  } , 
7171    } ) 
7272
7373    const  result  =  mergeExomeAndGenomePopulationData ( testVariant . exome ! ,  testVariant . genome ! ) 
@@ -82,7 +82,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
8282    expect ( result ) . toStrictEqual ( expected ) 
8383  } ) 
8484
85-   it ( 'returns expected values exomes have more populations  than genomes' ,  ( )  =>  { 
85+   it ( 'returns expected values exomes have more ancestry_groups  than genomes' ,  ( )  =>  { 
8686    const  exomeGeneticAncestryGroupObjects  =  createAncestryGroupObjects ( [ 
8787      {  id : 'afr' ,  value : 1  } , 
8888      {  id : 'remaining' ,  value : 2  } , 
@@ -98,8 +98,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
9898
9999    const  testVariant  =  variantFactory . build ( { 
100100      variant_id : 'test_variant' , 
101-       exome : {  populations : exomeGeneticAncestryGroupObjects  } , 
102-       genome : {  populations : genomeGeneticAncestryGroupObjects  } , 
101+       exome : {  ancestry_groups : exomeGeneticAncestryGroupObjects  } , 
102+       genome : {  ancestry_groups : genomeGeneticAncestryGroupObjects  } , 
103103    } ) 
104104
105105    const  result  =  mergeExomeAndGenomePopulationData ( testVariant . exome ! ,  testVariant . genome ! ) 
@@ -114,7 +114,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
114114    expect ( result ) . toStrictEqual ( expected ) 
115115  } ) 
116116
117-   it ( 'returns expected values when exome and genome populations  are in a different order' ,  ( )  =>  { 
117+   it ( 'returns expected values when exome and genome ancestry_groups  are in a different order' ,  ( )  =>  { 
118118    const  exomeGeneticAncestryGroupObjects  =  createAncestryGroupObjects ( [ 
119119      {  id : 'eur' ,  value : 1  } , 
120120      {  id : 'afr' ,  value : 2  } , 
@@ -129,8 +129,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
129129
130130    const  testVariant  =  variantFactory . build ( { 
131131      variant_id : 'test_variant' , 
132-       exome : {  populations : exomeGeneticAncestryGroupObjects  } , 
133-       genome : {  populations : genomeGeneticAncestryGroupObjects  } , 
132+       exome : {  ancestry_groups : exomeGeneticAncestryGroupObjects  } , 
133+       genome : {  ancestry_groups : genomeGeneticAncestryGroupObjects  } , 
134134    } ) 
135135
136136    const  result  =  mergeExomeAndGenomePopulationData ( testVariant . exome ! ,  testVariant . genome ! ) 
0 commit comments