@genspectrum/dashboard-components 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,14 +120,14 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
120
120
 
121
121
  const expectedData = [
122
122
  [
123
- { type: 'value', proportion: 0.4, count: 4, totalCount: 11 },
124
- { type: 'value', proportion: 0, count: 0, totalCount: 12 },
125
- { type: 'value', proportion: 0, count: 0, totalCount: 13 },
123
+ { type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
124
+ { type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 12 },
125
+ { type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 13 },
126
126
  ],
127
127
  [
128
- { type: 'value', proportion: 0.1, count: 1, totalCount: 11 },
129
- { type: 'value', proportion: 0.2, count: 2, totalCount: 12 },
130
- { type: 'value', proportion: 0.3, count: 3, totalCount: 13 },
128
+ { type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
129
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 12 },
130
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 13 },
131
131
  ],
132
132
  ];
133
133
  expect(mutationOverTimeData.getAsArray()).to.deep.equal(expectedData);
@@ -289,14 +289,14 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
289
289
 
290
290
  expect(mutationOverTimeData.getAsArray()).to.deep.equal([
291
291
  [
292
- { type: 'value', proportion: 0.4, count: 4, totalCount: 11 },
292
+ { type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
293
293
  null,
294
- { type: 'value', proportion: 0, count: 0, totalCount: 13 },
294
+ { type: 'valueWithCoverage', count: 0, coverage: 10, totalCount: 13 },
295
295
  ],
296
296
  [
297
- { type: 'value', proportion: 0.1, count: 1, totalCount: 11 },
297
+ { type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
298
298
  null,
299
- { type: 'value', proportion: 0.3, count: 3, totalCount: 13 },
299
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 13 },
300
300
  ],
301
301
  ]);
302
302
 
@@ -523,8 +523,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
523
523
 
524
524
  expect(mutationOverTimeData.getAsArray()).to.deep.equal([
525
525
  [
526
- { type: 'value', proportion: 0.2, count: 2, totalCount: 11 },
527
- { type: 'value', proportion: 0.3, count: 3, totalCount: 12 },
526
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
527
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
528
528
  ],
529
529
  ]);
530
530
 
@@ -635,8 +635,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
635
635
 
636
636
  expect(mutationOverTimeData.getAsArray()).to.deep.equal([
637
637
  [
638
- { type: 'value', proportion: 0.1, count: 1, totalCount: 11 },
639
- { type: 'value', proportion: 0.2, count: 2, totalCount: 12 },
638
+ { type: 'valueWithCoverage', count: 1, coverage: 10, totalCount: 11 },
639
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 12 },
640
640
  ],
641
641
  ]);
642
642
 
@@ -726,7 +726,7 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
726
726
  });
727
727
 
728
728
  expect(mutationOverTimeData.getAsArray()).to.deep.equal([
729
- [{ type: 'value', proportion: 0.2, count: 2, totalCount: 11 }],
729
+ [{ type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 }],
730
730
  ]);
731
731
 
732
732
  const sequences = mutationOverTimeData.getFirstAxisKeys();
@@ -839,12 +839,12 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
839
839
 
840
840
  expect(mutationOverTimeData.getAsArray()).to.deep.equal([
841
841
  [
842
- { type: 'value', proportion: 0.2, count: 2, totalCount: 11 },
843
- { type: 'value', proportion: 0.3, count: 3, totalCount: 12 },
842
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
843
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
844
844
  ],
845
845
  [
846
- { type: 'value', proportion: 0.4, count: 4, totalCount: 11 },
847
- { type: 'value', proportion: 0.5, count: 5, totalCount: 12 },
846
+ { type: 'valueWithCoverage', count: 4, coverage: 10, totalCount: 11 },
847
+ { type: 'valueWithCoverage', count: 5, coverage: 10, totalCount: 12 },
848
848
  ],
849
849
  ]);
850
850
 
@@ -1017,8 +1017,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
1017
1017
  { type: 'belowThreshold', totalCount: 12 },
1018
1018
  ],
1019
1019
  [
1020
- { type: 'value', proportion: 0.2, count: 2, totalCount: 11 },
1021
- { type: 'value', proportion: 0.3, count: 3, totalCount: 12 },
1020
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
1021
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
1022
1022
  ],
1023
1023
  ]);
1024
1024
 
@@ -1139,8 +1139,8 @@ describe('queryMutationsOverTimeNewEndpoint', () => {
1139
1139
  { type: 'belowThreshold', totalCount: 12 },
1140
1140
  ],
1141
1141
  [
1142
- { type: 'value', proportion: 0.2, count: 2, totalCount: 11 },
1143
- { type: 'value', proportion: 0.3, count: 3, totalCount: 12 },
1142
+ { type: 'valueWithCoverage', count: 2, coverage: 10, totalCount: 11 },
1143
+ { type: 'valueWithCoverage', count: 3, coverage: 10, totalCount: 12 },
1144
1144
  ],
1145
1145
  ]);
1146
1146