@@ -26,7 +26,7 @@ const createAncestryGroupObjects = (shorthands: AncestryGroupShorthand[]) => {
26
26
}
27
27
28
28
describe ( '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 ' , ( ) => {
30
30
const geneticAncestryGroupObjects = createAncestryGroupObjects ( [
31
31
{ id : 'afr' , value : 1 } ,
32
32
{ id : 'remaining' , value : 2 } ,
@@ -35,8 +35,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
35
35
36
36
const testVariant = variantFactory . build ( {
37
37
variant_id : 'test_variant' ,
38
- exome : { populations : geneticAncestryGroupObjects } ,
39
- genome : { populations : geneticAncestryGroupObjects } ,
38
+ exome : { ancestry_groups : geneticAncestryGroupObjects } ,
39
+ genome : { ancestry_groups : geneticAncestryGroupObjects } ,
40
40
} )
41
41
42
42
const result = mergeExomeAndGenomePopulationData ( testVariant . exome ! , testVariant . genome ! )
@@ -50,7 +50,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
50
50
expect ( result ) . toStrictEqual ( expected )
51
51
} )
52
52
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' , ( ) => {
54
54
const exomeGeneticAncestryGroupObjects = createAncestryGroupObjects ( [
55
55
{ id : 'afr' , value : 1 } ,
56
56
{ id : 'remaining' , value : 2 } ,
@@ -66,8 +66,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
66
66
67
67
const testVariant = variantFactory . build ( {
68
68
variant_id : 'test_variant' ,
69
- exome : { populations : exomeGeneticAncestryGroupObjects } ,
70
- genome : { populations : genomeGeneticAncestryGroupObjects } ,
69
+ exome : { ancestry_groups : exomeGeneticAncestryGroupObjects } ,
70
+ genome : { ancestry_groups : genomeGeneticAncestryGroupObjects } ,
71
71
} )
72
72
73
73
const result = mergeExomeAndGenomePopulationData ( testVariant . exome ! , testVariant . genome ! )
@@ -82,7 +82,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
82
82
expect ( result ) . toStrictEqual ( expected )
83
83
} )
84
84
85
- it ( 'returns expected values exomes have more populations than genomes' , ( ) => {
85
+ it ( 'returns expected values exomes have more ancestry_groups than genomes' , ( ) => {
86
86
const exomeGeneticAncestryGroupObjects = createAncestryGroupObjects ( [
87
87
{ id : 'afr' , value : 1 } ,
88
88
{ id : 'remaining' , value : 2 } ,
@@ -98,8 +98,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
98
98
99
99
const testVariant = variantFactory . build ( {
100
100
variant_id : 'test_variant' ,
101
- exome : { populations : exomeGeneticAncestryGroupObjects } ,
102
- genome : { populations : genomeGeneticAncestryGroupObjects } ,
101
+ exome : { ancestry_groups : exomeGeneticAncestryGroupObjects } ,
102
+ genome : { ancestry_groups : genomeGeneticAncestryGroupObjects } ,
103
103
} )
104
104
105
105
const result = mergeExomeAndGenomePopulationData ( testVariant . exome ! , testVariant . genome ! )
@@ -114,7 +114,7 @@ describe('mergeExomeAndGenomePopulationData', () => {
114
114
expect ( result ) . toStrictEqual ( expected )
115
115
} )
116
116
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' , ( ) => {
118
118
const exomeGeneticAncestryGroupObjects = createAncestryGroupObjects ( [
119
119
{ id : 'eur' , value : 1 } ,
120
120
{ id : 'afr' , value : 2 } ,
@@ -129,8 +129,8 @@ describe('mergeExomeAndGenomePopulationData', () => {
129
129
130
130
const testVariant = variantFactory . build ( {
131
131
variant_id : 'test_variant' ,
132
- exome : { populations : exomeGeneticAncestryGroupObjects } ,
133
- genome : { populations : genomeGeneticAncestryGroupObjects } ,
132
+ exome : { ancestry_groups : exomeGeneticAncestryGroupObjects } ,
133
+ genome : { ancestry_groups : genomeGeneticAncestryGroupObjects } ,
134
134
} )
135
135
136
136
const result = mergeExomeAndGenomePopulationData ( testVariant . exome ! , testVariant . genome ! )
0 commit comments