@@ -13,15 +13,15 @@ beforeEach(() => {
1313test ( 'test with default args' , async ( ) => {
1414 const command = new Protinfo ( ) ;
1515 await command . run ( [ "P78330" ] , { header : true , format : "csv" } ) ;
16- expect ( output [ 0 ] . startsWith ( "protein,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code" ) ) . toBeTruthy ( ) ;
17- expect ( output [ 1 ] . startsWith ( "P78330,9606,Homo sapiens" ) ) . toBeTruthy ( ) ;
16+ expect ( output [ 0 ] . startsWith ( "protein,name, taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code" ) ) . toBeTruthy ( ) ;
17+ expect ( output [ 1 ] . startsWith ( "P78330,Phosphoserine phosphatase, 9606,Homo sapiens" ) ) . toBeTruthy ( ) ;
1818 expect ( output . length ) . toBe ( 2 ) ;
1919} ) ;
2020
2121test ( 'test with fasta' , async ( ) => {
2222 const command = new Protinfo ( ) ;
2323 await command . run ( [ ">test" , "P78330" ] , { header : true , format : "csv" } ) ;
24- expect ( output [ 0 ] . startsWith ( "fasta_header,protein,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code" ) ) . toBeTruthy ( ) ;
25- expect ( output [ 1 ] . startsWith ( ">test,P78330,9606,Homo sapiens" ) ) . toBeTruthy ( ) ;
24+ expect ( output [ 0 ] . startsWith ( "fasta_header,protein,name, taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code" ) ) . toBeTruthy ( ) ;
25+ expect ( output [ 1 ] . startsWith ( ">test,P78330,Phosphoserine phosphatase, 9606,Homo sapiens" ) ) . toBeTruthy ( ) ;
2626 expect ( output . length ) . toBe ( 2 ) ;
2727} ) ;
0 commit comments