Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Jun 11, 2024
1 parent cc972a0 commit 4f884eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imports/api/genomes/annotation/addAnnotation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('AddAnnotation', function testAnnotation() {
chai.assert.equal(gene.start, 13640);
chai.assert.equal(gene.end, 15401);

chai.assert.lengthOf(gene.subfeatures, 13, 'Number of subfeatures is not 13');
chai.assert.lengthOf(gene.subfeatures, 14, 'Number of subfeatures is not 14');

// Check CDS with the same ID
has_default_cds = gene.subfeatures.some((sub) => sub.type == "CDS" && sub.ID == "Bni|B01g000010.2N.1.cds1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ class AnnotationProcessor {

// Manage case of discontinuous CDS: Same ID -> we add a suffix to avoid crashing
if (typeAttr === 'CDS'){
if identifiant in this.cds_ids:
if (identifiant in this.cds_ids){
identifiant = identifiant + "." + this.cds_ids[identifiant]
this.cds_ids[identifiant] += 1
} else {
Expand Down

0 comments on commit 4f884eb

Please sign in to comment.