wip: Sequence details v2 #32
Annotations
5 errors and 1 warning
Run tests:
website/src/components/SequenceDetailsPage/getTableData.spec.ts#L123
AssertionError: expected [ …(9) ] to deep equally contain { label: 'Metadata field1', …(3) }
- Expected:
Object {
"header": "testHeader1",
"label": "Metadata field1",
"name": "metadataField1",
"value": "value 1",
}
+ Received:
Array [
Object {
"customDisplay": undefined,
"header": "testHeader1",
"label": "Metadata field1",
"name": "metadataField1",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "value 1",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Metadata field2",
"name": "metadataField2",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "value 2",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Timestamp field",
"name": "timestampField",
"type": Object {
"name": "metadata",
"type": "timestamp",
},
"value": "N/A",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Nucleotide substitutions",
"name": "nucleotideSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide deletions",
"name": "nucleotideDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide insertions",
"name": "nucleotideInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Amino acid substitutions",
"name": "aminoAcidSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid deletions",
"name": "aminoAcidDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid insertions",
"name": "aminoAcidInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
]
❯ src/components/SequenceDetailsPage/getTableData.spec.ts:123:22
|
Run tests:
website/src/components/SequenceDetailsPage/getTableData.spec.ts#L144
AssertionError: expected [ …(9) ] to deep equally contain { …(5) }
- Expected:
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [
Object {
"count": 0,
"mutation": "T10A",
"mutationFrom": "T",
"mutationTo": "A",
"position": 10,
"proportion": 0,
"sequenceName": null,
},
Object {
"count": 0,
"mutation": "C30G",
"mutationFrom": "C",
"mutationTo": "G",
"position": 30,
"proportion": 0,
"sequenceName": null,
},
],
},
"header": "Mutations, insertions, deletions",
"label": "Nucleotide substitutions",
"name": "nucleotideSubstitutions",
"value": "",
}
+ Received:
Array [
Object {
"customDisplay": undefined,
"header": "testHeader1",
"label": "Metadata field1",
"name": "metadataField1",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Metadata field2",
"name": "metadataField2",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Timestamp field",
"name": "timestampField",
"type": Object {
"name": "metadata",
"type": "timestamp",
},
"value": "N/A",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [
Object {
"count": 0,
"mutation": "T10A",
"mutationFrom": "T",
"mutationTo": "A",
"position": 10,
"proportion": 0,
"sequenceName": null,
},
Object {
"count": 0,
"mutation": "C30G",
"mutationFrom": "C",
"mutationTo": "G",
"position": 30,
"proportion": 0,
"sequenceName": null,
},
],
},
"header": "Mutations, insertions, deletions",
"label": "Nucleotide substitutions",
"name": "nucleotideSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide deletions",
"name": "nucleotideDeletions",
"type": Object {
"name": "mutation",
},
"value": "20, 21, 39-45, 400",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide insertions",
"name": "nucleotideInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [
Object {
"count": 0,
"mutation": "gene1:N10Y",
"mutationFrom": "N",
"mutationTo": "Y",
"position": 10,
"proportion": 0,
"sequenceName": "gene1",
},
Object {
"count": 0,
"mutation": "gene1:T30N",
"mutationFrom": "T",
"mutationTo": "N",
"position": 30,
"proportion": 0,
"sequenceName": "gene1",
},
],
},
"header": "Mutations, insertions, deletions",
"label": "Amino acid substitutions",
"name": "aminoAcidSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid deletions",
"name": "aminoAcidDeletions",
"type": Object {
"name": "mutation",
},
"value": "gene1:20-23, gene1:40",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid insertions",
"name": "aminoAcidInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
]
❯ src/components/SequenceDetailsPage/getTableData.spec.ts:144:22
|
Run tests:
website/src/components/SequenceDetailsPage/getTableData.spec.ts#L223
AssertionError: expected [ …(9) ] to deep equally contain { Object (label, name, ...) }
- Expected:
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide insertions",
"name": "nucleotideInsertions",
"value": "nucleotideInsertion1, nucleotideInsertion2",
}
+ Received:
Array [
Object {
"customDisplay": undefined,
"header": "testHeader1",
"label": "Metadata field1",
"name": "metadataField1",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Metadata field2",
"name": "metadataField2",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Timestamp field",
"name": "timestampField",
"type": Object {
"name": "metadata",
"type": "timestamp",
},
"value": "N/A",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Nucleotide substitutions",
"name": "nucleotideSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide deletions",
"name": "nucleotideDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide insertions",
"name": "nucleotideInsertions",
"type": Object {
"name": "mutation",
},
"value": "nucleotideInsertion1, nucleotideInsertion2",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Amino acid substitutions",
"name": "aminoAcidSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid deletions",
"name": "aminoAcidDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid insertions",
"name": "aminoAcidInsertions",
"type": Object {
"name": "mutation",
},
"value": "aminoAcidInsertion1, aminoAcidInsertion2",
},
]
❯ src/components/SequenceDetailsPage/getTableData.spec.ts:223:22
|
Run tests:
website/src/components/SequenceDetailsPage/getTableData.spec.ts#L243
AssertionError: expected [ …(9) ] to deep equally contain { label: 'Timestamp field', …(3) }
- Expected:
Object {
"header": "",
"label": "Timestamp field",
"name": "timestampField",
"value": "2024-01-25 14:59:21 UTC",
}
+ Received:
Array [
Object {
"customDisplay": undefined,
"header": "testHeader1",
"label": "Metadata field1",
"name": "metadataField1",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Metadata field2",
"name": "metadataField2",
"type": Object {
"name": "metadata",
"type": "string",
},
"value": "N/A",
},
Object {
"customDisplay": undefined,
"header": "",
"label": "Timestamp field",
"name": "timestampField",
"type": Object {
"name": "metadata",
"type": "timestamp",
},
"value": "2024-01-25 14:59:21 UTC",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Nucleotide substitutions",
"name": "nucleotideSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide deletions",
"name": "nucleotideDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Nucleotide insertions",
"name": "nucleotideInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"customDisplay": Object {
"type": "badge",
"value": Array [],
},
"header": "Mutations, insertions, deletions",
"label": "Amino acid substitutions",
"name": "aminoAcidSubstitutions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid deletions",
"name": "aminoAcidDeletions",
"type": Object {
"name": "mutation",
},
"value": "",
},
Object {
"header": "Mutations, insertions, deletions",
"label": "Amino acid insertions",
"name": "aminoAcidInsertions",
"type": Object {
"name": "mutation",
},
"value": "",
},
]
❯ src/components/SequenceDetailsPage/getTableData.spec.ts:243:22
|
Run tests
Process completed with exit code 1.
|
|
Loading