@@ -62,7 +62,7 @@ describe('SequencesForm', () => {
6262 expect ( fasta ) . not . toBeUndefined ( ) ;
6363 const fastaText = await fasta ! . text ( ) ;
6464 expect . soft ( fastaText ) . toBe ( '>subId_Segment1\nATCG' ) ;
65- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'Segment 1 ' : 'ATCG' } ) ;
65+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'subId_Segment1 ' : 'ATCG' } ) ;
6666
6767 const rows = editableSequences . rows ;
6868 expect ( rows ) . toEqual ( [
@@ -84,7 +84,7 @@ describe('SequencesForm', () => {
8484 expect ( fasta ) . not . toBeUndefined ( ) ;
8585 const fastaText = await fasta ! . text ( ) ;
8686 expect . soft ( fastaText ) . toBe ( '>subId_Segment1\nATCG' ) ;
87- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'Segment 1 ' : 'ATCG' } ) ;
87+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'subId_Segment1 ' : 'ATCG' } ) ;
8888
8989 const rows = editableSequences . rows ;
9090 expect ( rows ) . toEqual ( [
@@ -117,7 +117,7 @@ describe('SequencesForm', () => {
117117 expect ( fasta ) . not . toBeUndefined ( ) ;
118118 const fastaText = await fasta ! . text ( ) ;
119119 expect . soft ( fastaText ) . toBe ( '>subId_Segment1\nATCG' ) ;
120- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'Segment 1 ' : 'ATCG' } ) ;
120+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'subId_Segment1 ' : 'ATCG' } ) ;
121121
122122 const rows = editableSequences . rows ;
123123 expect ( rows ) . toEqual ( [
@@ -133,7 +133,7 @@ describe('SequencesForm', () => {
133133 expect ( fasta ) . not . toBeUndefined ( ) ;
134134 const fastaText = await fasta ! . text ( ) ;
135135 expect . soft ( fastaText ) . toBe ( '>subId_Segment1\nATCG\n>subId_Segment2\nTT' ) ;
136- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'Segment 1 ' : 'ATCG' , 'Segment 2 ' : 'TT' } ) ;
136+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'subId_Segment1 ' : 'ATCG' , 'subId_Segment2 ' : 'TT' } ) ;
137137
138138 const rows = editableSequences . rows ;
139139 expect ( rows ) . deep . equals ( [
@@ -189,7 +189,7 @@ describe('SequencesForm', () => {
189189 const fastaText = await fasta ! . text ( ) ;
190190 expect . soft ( fastaText ) . toBe ( '>subId\nATCG' ) ;
191191
192- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { [ key ] : 'ATCG' } ) ;
192+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { 'subId' : 'ATCG' } ) ;
193193
194194 const rows = editableSequences . rows ;
195195 expect ( rows ) . deep . equals ( [ { label : key , value : 'ATCG' , initialValue : null , fastaHeader : 'subId' , key } ] ) ;
@@ -229,7 +229,7 @@ describe('SequencesForm', () => {
229229 const fastaText = await fasta ! . text ( ) ;
230230 expect . soft ( fastaText ) . toBe ( '>subId_label\nATCG' ) ;
231231
232- expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { label : 'ATCG' } ) ;
232+ expect ( editableSequences . getSequenceRecord ( ) ) . deep . equals ( { subId_label : 'ATCG' } ) ;
233233 } ) ;
234234
235235 test ( 'GIVEN initial segment data that is then deleted as an edit THEN the edit record does not contain the segment key but input field is kept' , ( ) => {
0 commit comments