Skip to content

Commit

Permalink
update expected recordsTotal and recordsFiltered and pass unit_mech/A…
Browse files Browse the repository at this point in the history
…JAX/Search/Trait.t test
  • Loading branch information
isaak committed Jan 6, 2025
1 parent bcc68c5 commit 5ef4147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/unit_mech/AJAX/Search/Trait.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $mech->post_ok('http://localhost:3010/ajax/search/traits?length=5&start=1' );
$response = decode_json $mech->content;
print STDERR Dumper $response;

is_deeply($response, {'data' => [['','<button class=\'btn btn-info btn-70761\' onclick=\'copy("amylopectin content ug/g in percentage", "CO_334:0000121", 70761)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70761/view">CO_334:0000121</a>','<a href="/cvterm/70761/view">amylopectin content ug/g in percentage</a>','Estimation of amylopectin content of cassava roots in percentage(%).','<em>None</em>','amylopectin content ug/g in percentage','CO_334:0000121'],['','<button class=\'btn btn-info btn-70752\' onclick=\'copy("amylose amylopectin root content ratio", "CO_334:0000124", 70752)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70752/view">CO_334:0000124</a>','<a href="/cvterm/70752/view">amylose amylopectin root content ratio</a>','The amylose content of a cassava root sample divided by the amylopectin content of the same sample.','<em>None</em>','amylose amylopectin root content ratio','CO_334:0000124'],['','<button class=\'btn btn-info btn-70676\' onclick=\'copy("amylose content in ug/g percentage", "CO_334:0000075", 70676)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70676/view">CO_334:0000075</a>','<a href="/cvterm/70676/view">amylose content in ug/g percentage</a>','Estimation of amylose content of cassava roots in percentage (%).','<em>None</em>','amylose content in ug/g percentage','CO_334:0000075'],['','<button class=\'btn btn-info btn-70717\' onclick=\'copy("anther color", "CO_334:0000061", 70717)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70717/view">CO_334:0000061</a>','<a href="/cvterm/70717/view">anther color</a>','Visual scoring of anther color with 1 = cream, 2 = yellow, and 3 = other.','<em>None</em>','anther color','CO_334:0000061'],['','<button class=\'btn btn-info btn-70775\' onclick=\'copy("anthocyanin pigmentation visual rating 0-3", "CO_334:0000103", 70775)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70775/view">CO_334:0000103</a>','<a href="/cvterm/70775/view">anthocyanin pigmentation visual rating 0-3</a>','Visual rating of distribution of anthocyanin pigmentation with 0 = absent, 1 = top part, 2 = central part, 3 = totally pigmented.','<em>None</em>','anthocyanin pigmentation visual rating 0-3','CO_334:0000103']],'recordsTotal' => 257,'recordsFiltered' => 257,'draw' => undef}, 'trait ajax search');
is_deeply($response, {'data' => [['','<button class=\'btn btn-info btn-70761\' onclick=\'copy("amylopectin content ug/g in percentage", "CO_334:0000121", 70761)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70761/view">CO_334:0000121</a>','<a href="/cvterm/70761/view">amylopectin content ug/g in percentage</a>','Estimation of amylopectin content of cassava roots in percentage(%).','<em>None</em>','amylopectin content ug/g in percentage','CO_334:0000121'],['','<button class=\'btn btn-info btn-70752\' onclick=\'copy("amylose amylopectin root content ratio", "CO_334:0000124", 70752)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70752/view">CO_334:0000124</a>','<a href="/cvterm/70752/view">amylose amylopectin root content ratio</a>','The amylose content of a cassava root sample divided by the amylopectin content of the same sample.','<em>None</em>','amylose amylopectin root content ratio','CO_334:0000124'],['','<button class=\'btn btn-info btn-70676\' onclick=\'copy("amylose content in ug/g percentage", "CO_334:0000075", 70676)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70676/view">CO_334:0000075</a>','<a href="/cvterm/70676/view">amylose content in ug/g percentage</a>','Estimation of amylose content of cassava roots in percentage (%).','<em>None</em>','amylose content in ug/g percentage','CO_334:0000075'],['','<button class=\'btn btn-info btn-70717\' onclick=\'copy("anther color", "CO_334:0000061", 70717)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70717/view">CO_334:0000061</a>','<a href="/cvterm/70717/view">anther color</a>','Visual scoring of anther color with 1 = cream, 2 = yellow, and 3 = other.','<em>None</em>','anther color','CO_334:0000061'],['','<button class=\'btn btn-info btn-70775\' onclick=\'copy("anthocyanin pigmentation visual rating 0-3", "CO_334:0000103", 70775)\'><span class=\'glyphicon glyphicon-copy\'></span></button>','<a href="/cvterm/70775/view">CO_334:0000103</a>','<a href="/cvterm/70775/view">anthocyanin pigmentation visual rating 0-3</a>','Visual rating of distribution of anthocyanin pigmentation with 0 = absent, 1 = top part, 2 = central part, 3 = totally pigmented.','<em>None</em>','anthocyanin pigmentation visual rating 0-3','CO_334:0000103']],'recordsTotal' => 267,'recordsFiltered' => 267,'draw' => undef}, 'trait ajax search');


done_testing();

0 comments on commit 5ef4147

Please sign in to comment.