Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Add goodieVersion to test (#4032)
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza authored Mar 23, 2017
1 parent b0006f1 commit b274ff2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/Timer.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ use DDG::Test::Goodie;
zci answer_type => 'timer';
zci is_cached => 1;

# Get Goodie version for use with image paths
my $goodieVersion = $DDG::GoodieBundle::OpenSourceDuckDuckGo::VERSION // 999;

sub build_structured_answer {
my $time = shift;
$time = $time || 0;
Expand All @@ -23,6 +26,7 @@ sub build_structured_answer {
},
data => {
time => "$time",
goodie_version => $goodieVersion
},
templates => {
group => 'base',
Expand Down

0 comments on commit b274ff2

Please sign in to comment.